Python Setup.py Build_Ext --inplace

I am creating a Cython program (called ex. Testpackage) with the command:

python setup.py build_ext --inplace

In the type folder /home/USER/Documents/testpackage/. The build is successful, but when I burn the CD to another folder, I can no longer use the module testpackage. Is there any other command that I can run instead --inplaceso that I can import testpackagein Python in any folder? I looked through the folder anaconda/lib/python2.7/site-packages/and do not see links to testpackageanywhere. Is this the standard for building cython?

NOTE. I do this through the .sh file using conda build testpackage, so the command python setup.py build_ext --inplaceis in the shell file.

Thank you for your help.

+4
source share
1 answer

--inplace ( .so) . python, python (sys.path).

python

python setup.py build_ext
sudo python setup.py install

, ,

python setup.py build_ext
python setup.py install --user
+5

All Articles