Last active
August 29, 2015 14:04
-
-
Save AntelopeSalad/a21faeab6e9b53dcdae5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
running develop | |
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/ | |
/usr/bin/python -E -c pass | |
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files | |
running egg_info | |
writing requirements to lib/foo.egg-info/requires.txt | |
writing lib/foo.egg-info/PKG-INFO | |
writing top-level names to lib/foo.egg-info/top_level.txt | |
writing dependency_links to lib/foo.egg-info/dependency_links.txt | |
package init file 'lib/foo/__init__.py' not found (or not a regular file) | |
reading manifest file 'lib/foo.egg-info/SOURCES.txt' | |
reading manifest template 'MANIFEST.in' | |
writing manifest file 'lib/foo.egg-info/SOURCES.txt' | |
running build_ext | |
Creating /usr/local/lib/python2.7/dist-packages/foo.egg-link (link to lib) | |
foo 0.1.0- is already the active version in easy-install.pth | |
Installing foo script to /usr/local/bin | |
Installed /home/nick/foo/lib | |
Processing dependencies for foo==0.1.0- | |
Searching for PyYAML==3.10 | |
Best match: PyYAML 3.10 | |
Adding PyYAML 3.10 to easy-install.pth file | |
Using /usr/lib/python2.7/dist-packages | |
Searching for Jinja2==2.6 | |
Best match: Jinja2 2.6 | |
Adding Jinja2 2.6 to easy-install.pth file | |
Using /usr/lib/python2.7/dist-packages | |
Finished processing dependencies for foo==0.1.0- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Directory structure: | |
setup.py | |
bin/hello | |
lib/foo | |
lib/foo/__init__.py | |
lib/foo/bar.py | |
# Successfully ran: ./setup.py develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All of these fail to find the module | |
import foo | |
import foo.bar | |
from foo import bar | |
import bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
setup(package_dir= { "foo": "lib/foo" }, packages=["foo"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/usr/local/bin/hello", line 7, in <module> | |
execfile(__file__) | |
File "/home/nick/foo/bin/hello", line 16, in <module> | |
from foo import bar | |
ImportError: No module named foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment