Skip to content

Commit

Permalink
use easy_install to create pth files based on setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoflow committed Dec 14, 2012
1 parent 06e3a13 commit 781ee26
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions default.nix
Expand Up @@ -8,7 +8,19 @@ pythonPackages.buildPythonPackage rec {

src = ./.;

buildInputs = [ git libxslt docbook_xsl ];
buildInputs =
[ git libxslt docbook_xsl
pythonPackages.prettytable
pythonPackages.boto
pythonPackages.sqlite3
];

# XXX: needed until nix stops to preserve the epoch 0 timestamp when
# copying source from store to tmp build directory or python zip
# knows how to handle epoch 0
preConfigure = ''
find . |xargs touch
'';

postUnpack = ''
# Clean up when building from a working tree.
Expand All @@ -17,16 +29,6 @@ pythonPackages.buildPythonPackage rec {

doCheck = false;

pythonPath =
[ pythonPackages.prettytable
pythonPackages.boto
pythonPackages.sqlite3
];

propagatedBuildInputs = pythonPath;

installCommand = "python setup.py install --prefix=$out";

postInstall =
''
cp ${import ./doc/manual { inherit revision; }} doc/manual/options-db.xml
Expand Down

0 comments on commit 781ee26

Please sign in to comment.