poetry2nix icon indicating copy to clipboard operation
poetry2nix copied to clipboard

Wheel no longer added to poetry.lock (upstream change)

Open mjlbach opened this issue 4 years ago • 0 comments

See: https://github.com/python-poetry/poetry/issues/3075

And: https://github.com/python-poetry/poetry/commit/b92e68119c8f4a164c4c72081ed8bd3dd9479d2e

This means a lot of the tests will fail to install wheel with the latest version of poetry when the lock files are updated. Locally, it means I have to do a lot of this:

    pythonEnv = poetry2nix.mkPoetryEnv {
      projectDir = ./.;
      preferWheels = true;
      overrides = poetry2nix.overrides.withDefaults (self: super: {
        fancycompleter = super.fancycompleter.overridePythonAttrs (
          old: {
            postPatch = '''';
          }
        );
        astunparse = super.astunparse.overridePythonAttrs (
        old: {
          buildInputs = old.buildInputs ++ [ self.wheel];
        });
        tensorboard = super.tensorboard.overridePythonAttrs (
        old: {
          buildInputs = old.buildInputs ++ [ self.wheel];
        });
        tensorflow = super.tensorflow.overridePythonAttrs (
        old: {
          buildInputs = old.buildInputs ++ [ self.wheel];
        }
        );
      });
    };

Also, apart from that, poetry is failing to resolve a new lock file due to https://github.com/python-poetry/poetry/issues/3367 (upstream)

mjlbach avatar Jan 22 '21 20:01 mjlbach