Skip to content

Commit

Permalink
Revert "Use buildPythonPackage development mode instead of mkShell"
Browse files Browse the repository at this point in the history
This reverts commit aafa11d.
  • Loading branch information
jacg committed Jun 22, 2020
1 parent aafa11d commit 6fac07b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ with import (builtins.fetchTarball {

let python = python37; in

python.pkgs.buildPythonPackage {
name = "invisible-cities";
pkgs.mkShell {
pname = "invisible-cities";
src = ./.;
buildInputs = with python.pkgs; [
cython
Expand All @@ -31,6 +31,9 @@ python.pkgs.buildPythonPackage {
scipy
sphinx
tornado
pytest
flaky
hypothesis
#pyxest-xdist
#pytest-instafail
python-language-server
Expand All @@ -39,15 +42,14 @@ python.pkgs.buildPythonPackage {
importmagic
];

checkInputs = with python.pkgs; [ pytest flaky hypothesis ];

shellHook = ''
export ICTDIR=`pwd`
export ICDIR=$ICTDIR/invisible_cities/
export PYTHONPATH=$ICTDIR:$PYTHONPATH
export NBDIR=`pwd`
export IC_NOTEBOOK_DIR=$NBDIR/invisible_cities/
export PATH=$ICTDIR/bin:$PATH
python setup.py build_ext --inplace
'';

}
Expand Down

0 comments on commit 6fac07b

Please sign in to comment.