Phillip Cloud
e0351878f1
chore: checkpoint
2023-10-24 08:29:24 -04:00
Peder Bergebakken Sundt
571b96630d
Support 'linux_<arch>' abi
...
Not common, but accepted by both pip and poetry.
2023-07-11 13:11:57 +12:00
Peder Bergebakken Sundt
45d253867d
pep425: remove 'm' abi flag for python 3.8+
...
Builds with and without pymalloc are ABI compatible since python 3.8.
https://docs.python.org/3.8/whatsnew/3.8.html#build-and-c-api-changes
2023-07-11 13:11:57 +12:00
Goldstein
7d635fe4c2
fix handling of complex build tags
2023-03-24 16:34:48 +13:00
Phillip Cloud
78b9db7574
fix: allow macosx_10_14 wheels
2022-12-17 15:08:43 -05:00
László Vaskó
d8a6e25608
PEP 425: match versions more loosely
...
Version specifiers are for lower bounds for required interpreter version
2022-10-10 11:39:43 +13:00
Andrew Marshall
d299b5699a
Add missing macOS 10_15 platform tag
2022-07-11 15:31:46 -04:00
Thiago Franco de Moraes
8333158d7d
Some wheels have build tag with more than one digit
2022-05-04 23:51:24 -03:00
Sem Mulder
87350abfc8
Add support for PEP 600
2022-03-28 23:39:16 +02:00
Sem Mulder
9a95ca8283
Match multiple platform tags when selecting wheels
2022-03-28 19:39:51 +02:00
Sem Mulder
fe368a40d2
Cleanup lib.strings member references
2022-03-28 19:33:30 +02:00
adisbladis
9b5fba1b71
Fix cross compilation and add cross test
2022-01-19 04:35:12 +12:00
austin-searchpilot
5a8fb13cb1
make wheel selection more sophisticated for m1 macs ( #489 )
...
* make wheel selection more sophisticated for m1 macs
* remove unneeded parentheses
Co-authored-by: Austin Platt <austinplatt@Austins-MacBook-Air.local>
2022-01-07 11:19:14 +12:00
Jashandeep Sohi
63c7040f5b
fix: add support for wheels w/ multiple platforms seperated by a period
...
Wheel filenames can have the format "mediapipe-0.8.7.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl".
Currently the check is for an exact match in the platform bit, i.e. "manylinux_2_17_x86_64.manylinux2014_x86_64".
This change checks whether the platform bit contains the platform we're looking for anywhere in it.
2021-09-17 20:16:13 -07:00
K900
324cc0cb2a
Fix stdenv.platform accesses for latest nixpkgs
...
This fixes builds being completely broken after:
* https://github.com/NixOS/nixpkgs/pull/110726
* https://github.com/NixOS/nixpkgs/pull/110544
This also fixes poetry2nix on ARM and PowerPC platforms by introducing a
mapping from Nixpkgs targets to manylinux_* machine names and using it
when matching wheels for dependencies.
2021-01-30 20:17:54 +03:00
yihuang
60280ea8e1
don't match macos version of rusty-rlp package
...
- add 10_8 and 10_7 to macos version list
2020-10-20 07:43:33 +08:00
adisbladis
52a484be33
Reformat with nixpkgs-fmt 1.0.0
2020-10-01 19:08:57 +02:00
adisbladis
e71aacda1a
Fix pep425 matching when modifiers are present
...
We wouldn't match `cp38m` but only `cp38`
2020-07-23 17:08:41 +02:00
adisbladis
a4a4c42cb3
Fix wheel compatibility checks when abi is abi3
...
The CPython stable ABI is abi3 as in the shared library suffix.
2020-06-08 15:59:25 +02:00
adisbladis
4ebbfdacd1
nixpkgs-fmt broke it's format yet again
2020-04-29 14:12:59 +01:00
Steve Purcell
e465c840f5
Avoid calling builtins.head on potentially-empty list
...
When no matching wheels are found, builtins.head causes this to fail
with a very low-level error. Better to return an empty list and
trigger the assertion in the code which calls this.
2020-04-08 16:24:35 +12:00
adisbladis
f7e435407e
nixpkgs-fmt all the things (again...)
2020-03-14 23:13:51 +00:00
Tobias Pflug
3a1eb66fbc
Improve PEP425 support
...
Make sure that whl files using notation such as "py2|py3|py2.py3"
and/or files using "any" in the `abi` tag are accepted as well.
2019-12-17 18:13:11 +01:00
Tobias Pflug
84f27ee31d
Refactoring
...
- Extract utility functions to ./lib.nix
- Extract buildPythonPackage to ./mk-poetry-dep.nix
- Replace some functions with existing builtin functions
- Use lib.partition for python package splitting
- Drop package filtering on the top-level and leave it to pep425.nix
2019-12-16 15:03:49 +01:00
Tobias Pflug
29c93b1dc2
Add wheel file selection according to pep425
...
Provides a `select` function that picks the most appropriate `.whl` file
based on platform, arch, python version and manylinux/OSX - version.
- Adds unit tests for pep425
- Adds test for manylinux support
- Fixes overrides: `passhtru` must be extended, not overwritten
- Don't strip python packages: this screws up manylinux binaries
2019-12-16 15:02:41 +01:00