Giter VIP home page Giter VIP logo

Comments (4)

takeda avatar takeda commented on June 9, 2024 1

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.

amarshall avatar amarshall commented on June 9, 2024 1

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.

adisbladis avatar adisbladis commented on June 9, 2024

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.

GustavoPeredo avatar GustavoPeredo commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.