pypi2nix - generating packages from pypi#815
Conversation
|
@garbas: This looks really cool! Some questions: Does it handle specific versions of python modules? I'm guessing yes because of this line in your patch: I'm guessing that Or are you actually overriding pypi dependency information (I see you have a "override" section). I hope these are not too dumb questions! :-) |
|
Answer to second question: These are native build inputs. There's no simple way to get these
|
|
Ah, of course, these are c library dependencies. I thought they were python modules (how silly of me). But what about this one: Zope is pure python, right? |
|
Missing in setup.py, am i right @garbas?
|
|
Quoting Bjørn Forsman (2013-08-12 19:45:15)
yes its handling specific version of python packages. later on i will also add { name: "example" if there is version 1.2.3 for example package it would produce something like self."example" = self."example-1.2.3"; i'm also not sure of exact
as @offlinehacker pointed out, you can not get buildInputs from pypi. thats why "packageA": { will be generated to something like: self."packageA-1.2.3" = buildPythonPackage {
no questions are dumb, tnx for taking time to look into it. Rok Garbas - http://www.garbas.si |
|
@garbas: Thanks for the explanation. I tried to run pypi2nix and got this message: Reading the code, I see that it expects a json file as sys.argv[1]. But it'd be nice to just have a "Usage: pypi2nix ...." message instead of this traceback :-) Also, if I pass it a non-existing path it prints the same traceback. Could you improve the error handling? Lastly, you have an "eggsdir = '/home/rok/.buildout/eggs'" line in pypi2nix/cli.py and this eggsdir variable is used further down in the code. |
|
@bjornfor tnx for feedback
|
|
@garbas: Thanks! +1 for merge :-) |
pypi2nix - generating packages from pypi
|
I think this broke the Nixpkgs channel: http://hydra.nixos.org/build/5713172 Could you run |
|
Quoting Eelco Dolstra (2013-08-15 03:25:10)
fixing right now. Rok Garbas - http://www.garbas.si |
PR NixOS#815 has already been merged
PR #815 has already been cherry-picked into the default nix version 1.11.8.
PR NixOS#815 has already been cherry-picked into the default nix version 1.11.8.
after this PL gets merged i'll slowly migrate packages from python-packages.nix to be generated with pypi2nix tool