Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit 3529107

Browse files
committed
zc.recipe.egg was not imported
1 parent 476b774 commit 3529107

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/pypi2nix/bootstrap.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{ stdenv, fetchurl, unzip, which, makeWrapper, python }:
1+
{ stdenv, fetchurl, unzip, which, makeWrapper, python
2+
}:
23

34
let
45
deps = import ./deps.nix { inherit fetchurl; };
@@ -31,8 +32,9 @@ in
3132
PYTHONPATH=$out/base ${python.interpreter} -c "import sys, pip; sys.exit(pip.main(['install', '--force-reinstall', '--upgrade', 'wheel', '--no-index', '--find-links=file://$PWD/../index', '-v', '--target', '$out/extra']))"
3233
PYTHONPATH=$out/base ${python.interpreter} -c "import sys, pip; sys.exit(pip.main(['install', '--force-reinstall', '--upgrade', 'zc.buildout', 'zc.recipe.egg', 'buildout.requirements', '--no-index', '--find-links=file://$PWD/../index', '-v', '--target', '$out/extra']))"
3334
34-
touch $out/extra/zc/__init__.py
3535
touch $out/extra/buildout/__init__.py
36+
touch $out/extra/zc/__init__.py
37+
touch $out/extra/zc/recipe/__init__.py
3638
3739
echo -e "#!${python.interpreter}\nimport sys, pip; sys.exit(pip.main())" > $out/bin/pip
3840
echo -e "#!${python.interpreter}\nimport sys, zc.buildout.buildout\nsys.exit(zc.buildout.buildout.main())" > $out/bin/buildout

src/pypi2nix/buildout.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ in pkgs.stdenv.mkDerivation rec {
2929
export SSL_CERT_FILE="${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
3030
export PYTHONPATH=${pypi2nix_bootstrap}/base
3131
export LANG=en_US.UTF-8
32+
export HOME=${project_dir}
3233
3334
mkdir -p ${buildout_cache_dir}/download ${buildout_cache_dir}/eggs
3435

0 commit comments

Comments
 (0)