Comments (4)
Ah, I guess this issue might be on darwin then.
Though this creates an issue, as ddtrace currently can't be compiled (I started working on it, but still did not succeed, because of external dependencies). mypy on the other hand compiles but takes 20 minutes, which is too long especially that it is pretty much always a dev dependency.
Would it be possible to add an option to force use of incompatible wheels on darwin (forceWheel = true
or something like that) so it wouldn't break the dev environment?
from poetry2nix.
It’s possible to build Python with newer SDK by overlaying e.g.
(final: prev: {
python = prev.python.override {
self = final.python; # Need to re-inject the new python, not using __splicedPackages probably breaks cross-compile
stdenv =
if prev.stdenv.isDarwin
then let
getSdkVersion = sdk: (if sdk ? MacOSX-SDK then sdk.MacOSX-SDK else sdk.sdk).version;
defaultSdk = prev.darwin.apple_sdk;
newSdk = prev.darwin.apple_sdk_11_0;
# Fail if “new” SDK is not newer to encourage changing back to the default
in assert prev.lib.versionOlder (getSdkVersion defaultSdk) (getSdkVersion newSdk); newSdk.stdenv
else prev.stdenv;
};
})
This makes for many more wheels to be considered compatible.
from poetry2nix.
I suspect that what you're experiencing is the side effect of the old implementation having a lot of correctness issues.
We now take all metadata in the wheel filename into account.
The sad part is that on x86_64-darwin
the nixpkgs SDK version is stuck on 10.12 meaning that most wheels will be filtered out on that platform.
from poetry2nix.
I'm trying to build an environment in NixOS using poetry2nix, for mepreferWheels = true;
is not even building from source, it fails saying it couldn't build bootstrap-tomli
:
warning: Ignoring setting 'auto-allocate-uids' because experimental feature 'auto-allocate-uids' is not enabled
warning: Ignoring setting 'impure-env' because experimental feature 'configurable-impure-env' is not enabled
error: builder for '/nix/store/kz3j4mgyxvlphblvgnjjpb6d1g576g8h-python3.11-bootstrap-tomli-2.0.1.drv' failed with exit code 1;
last 3 log lines:
> Running phase: unpackPhase
> unpacking source archive /nix/store/n181p30nsl7d9izk6ll87qh9vqwb3cvj-tomli-2.0.1-py3-none-any.whl
> do not know how to unpack source archive /nix/store/n181p30nsl7d9izk6ll87qh9vqwb3cvj-tomli-2.0.1-py3-none-any.whl
For full logs, run 'nix log /nix/store/kz3j4mgyxvlphblvgnjjpb6d1g576g8h-python3.11-bootstrap-tomli-2.0.1.drv'.
error: 1 dependencies of derivation '/nix/store/05c0h62pi2a6a2nhnp2kj903h0k2vvda-python3.11-bootstrap-build-1.0.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ml4whmv5amfzv457x0pqdx6gf5g694cj-pypa-build-hook.sh.drv' failed to build
error: 1 dependencies of derivation '/nix/store/nsbdaw2ly7a5iaysxk8a0q31b4dpv1x2-python3.11-build-1.0.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/2hbpr9ay9ri25q97mxgwyqhgvxpk25ia-python3.11-installer-0.7.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jzhc3xzr52dkggwjnhx6kl2ixvbs6n07-python3.11-wheel-0.42.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/f33n5yz65nh8kfxdx3q4lcmi54b8170f-pypa-build-hook.sh.drv' failed to build
error: 1 dependencies of derivation '/nix/store/638andg30scaip6ribhhj8ylf3qx3jwq-pypa-install-hook.drv' failed to build
error: 1 dependencies of derivation '/nix/store/zrwmnbjr51985qv7d65zv2p6wiclhmnf-python3.11-setuptools-69.0.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yx2xppfqa03dn77an87d9majjqjv6n8k-wheel-unpack-hook.sh.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i1cvd06m1drjvnwr2zcqa90d9pl0214n-nix-shell-env.drv' failed to build
from poetry2nix.
Related Issues (20)
- Unable to fetch wheel from PyTorch geometric
- template fails with stack overflow HOT 2
- Default dependencies should work as if they were in `main` group
- Built poetry apps / envs contain `__pycache__` and `*.pyc` HOT 1
- pyee no longer contains setup.py; installation fails for recent versions HOT 1
- overrides for package torchvision is missing native build dependencies.
- Automatically add `setuptools` to `buildInputs` for legacy projects
- scipy v1.13 requires cython 3
- Python package not selected due to darwinSdkVersion mismatch on M1 Mac HOT 1
- awscli2 package breaks cryptography when used with non-default Python version
- [bug] platform_machine reported wrong on Arm machines lead to Missing suitable source/wheel file entry errors HOT 3
- Separation of build & runtime dependencies? HOT 1
- Can't install cmdstanpy wheel
- Can't install python-magic wheel HOT 1
- Flake with multiple dev shells, mkPoetryEnv is one of them
- Pyright preferring some other python over poetry2nix's
- `editablePackageSources` doesn't work for packages in a `src` directory
- "Error compiling Cython file" in pyproj 3.5.0
- badge showing "CI: failing", probably wrongly
- Collision in unstructured[pdf] for bin/.pytesseract-wrapped
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poetry2nix.