Skip to content

Instantly share code, notes, and snippets.

@ohnorobo
Last active September 3, 2020 20:45
Show Gist options
  • Save ohnorobo/ce06fc302598202b2a9b0997dd48fc0d to your computer and use it in GitHub Desktop.
Save ohnorobo/ce06fc302598202b2a9b0997dd48fc0d to your computer and use it in GitHub Desktop.
Example running setup.py with and without egg_info for Apache Beam
Running setup without egg_info
python setup.py sdist --dist-dir /tmp/tmpn4hbl9jb
running sdist
running egg_info
creating <package-name>.egg-info
writing <package-name>.egg-info/PKG-INFO
writing dependency_links to <package-name>.egg-info/dependency_links.txt
writing requirements to <package-name>.egg-info/requires.txt
writing top-level names to <package-name>.egg-info/top_level.txt
writing manifest file '<package-name>.egg-info/SOURCES.txt'
reading manifest file '<package-name>.egg-info/SOURCES.txt'
writing manifest file '<package-name>.egg-info/SOURCES.txt'
running check
creating <package-name>-0.0.1
creating <package-name>-0.0.1/<package-name>.egg-info
copying files to <package-name>-0.0.1...
copying README.md -> <package-name>-0.0.1
copying <package-name>.egg-info/PKG-INFO -> <package-name>-0.0.1/<package-name>.egg-info
copying <package-name>.egg-info/SOURCES.txt -> <package-name>-0.0.1/<package-name>.egg-info
copying <package-name>.egg-info/dependency_links.txt -> <package-name>-0.0.1/<package-name>.egg-info
copying <package-name>.egg-info/requires.txt -> <package-name>-0.0.1/<package-name>.egg-info
copying <package-name>.egg-info/top_level.txt -> <package-name>-0.0.1/<package-name>.egg-info
Writing <package-name>-0.0.1/setup.cfg
Creating tar archive
removing '<package-name>-0.0.1' (and everything under it)
ls ./<package-name>.egg-info
dependency_links.txt PKG-INFO requires.txt SOURCES.txt top_level.txt
ls /tmp/tmpn4hbl9jb
<package-name>-0.0.1.tar.gz
===========================
Running setup with egg_info
python setup.py egg_info --egg-base /tmp/tmpn4hbl9jb sdist --dist-dir /tmp/tmpn4hbl9jb
running egg_info
writing /tmp/tmpn4hbl9jb/<package-name>.egg-info/PKG-INFO
writing dependency_links to /tmp/tmpn4hbl9jb/<package-name>.egg-info/dependency_links.txt
writing requirements to /tmp/tmpn4hbl9jb/<package-name>.egg-info/requires.txt
writing top-level names to /tmp/tmpn4hbl9jb/<package-name>.egg-info/top_level.txt
reading manifest file '/tmp/tmpn4hbl9jb/<package-name>.egg-info/SOURCES.txt'
writing manifest file '/tmp/tmpn4hbl9jb/<package-name>.egg-info/SOURCES.txt'
running sdist
running check
creating <package-name>-0.0.1
copying files to <package-name>-0.0.1...
copying README.md -> <package-name>s-0.0.1
Writing <package-name>-0.0.1/setup.cfg
Creating tar archive
removing '<package-name>-0.0.1' (and everything under it)
ls ./<package-name>.egg-info
ls: cannot access '<package-name>.egg-info': No such file or directory
ls /tmp/tmpn4hbl9jb
<package-name>-0.0.1.tar.gz <package-name>.egg-info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment