Commit 994826ac authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Julien Muchembled

Propagate sys.path as PYTHONPATH while develop

  While invoke setup.py certain eggs (like scikit-learn) launch
  cetain custom builds (for cython) using subprocess and sys.executable.

  This commit aims to preserve the sys.path over the runs, even if an
  egg is using subprocess with the same python to build a component of
  the egg.
parent 056298e1
...@@ -1606,6 +1606,8 @@ for extra_path in %(path_list)r: ...@@ -1606,6 +1606,8 @@ for extra_path in %(path_list)r:
import os, setuptools import os, setuptools
os.environ['PYTHONPATH'] = (os.pathsep).join(sys.path[:])
__file__ = %(__file__)r __file__ = %(__file__)r
os.chdir(%(setupdir)r) os.chdir(%(setupdir)r)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment