[Distutils] setup.py develop issues
Cody Piersall
cody.piersall at gmail.com
Tue Oct 7 19:28:25 CEST 2014
I am having issues with using setup.py develop on my computer at work. My
understanding of the command is that it should make my project import-able
without really installing it, so that I can continue to change my files
without needing to reinstall the project.
Here is a minimum example of the problem. I create a new project (named
project) with only a single package, and create the minimum setup.py file
that I thought would work.
mkdir project
cd project
mkdir project
echo. > project\__init__.py
echo.from setuptools import setup>setup.py
echo.setup(>>setup.py
echo. name='project',>>setup.py
echo. packages=['project'],>>setup.py
echo.^)>>setup.py
cd ..
After running these commands (as a batch script), I did
cd project
python setup.py develop
but the project was not importable. I can import it when I run `python
setup.py install` though. Here is the output of running python setup.py
develop:
C:\Users\CWP\Development\project>python setup.py develop
running develop
running egg_info
creating project.egg-info
writing top-level names to project.egg-info\top_level.txt
writing project.egg-info\PKG-INFO
writing dependency_links to project.egg-info\dependency_links.txt
writing manifest file 'project.egg-info\SOURCES.txt'
reading manifest file 'project.egg-info\SOURCES.txt'
writing manifest file 'project.egg-info\SOURCES.txt'
running build_ext
Creating c:\python34\lib\site-packages\project.egg-link (link to .)
Adding project 0.0.0 to easy-install.pth file
Installed c:\users\cwp\development\project
Processing dependencies for project==0.0.0
Finished processing dependencies for project==0.0.0
I'm using Python 3.4.0 and setuptools 6.0.2. I'm not sure if I'm using
setuptools wrong, if my understanding of setuptools is wrong, or if this is
a bug in setuptools under Windows.
Cody
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20141007/7efacd9e/attachment-0001.html>
More information about the Distutils-SIG
mailing list