Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add egg support #2

Merged
merged 8 commits into from
Nov 17, 2014
Merged

Add egg support #2

merged 8 commits into from
Nov 17, 2014

Conversation

dave-shawley
Copy link
Owner

This PR adds the --eggs parameter that removes .egg-info directories created when a package is installed locally or an egg is hatched. It also removes any .egg directories/files in the current directory. These will exist for things that are installed via setup_requires or tests_require keyword parameters to setup.

Switched to using ``distutils.dir_util`` instead of ``shutil`` to
remove directories since it has nice support for dry run already.
Switched from enumerating ``self.distribution.commands`` to using
``self.distribution.get_command_list``.  The former is the list of
command names that will be run and the latter is the list of all
known commands.  This will make the code work when you do not
include something like ``sdist`` in the same command list.
Might as well make use of the extension here as well.  This makes it
much easier to test some of the trickier stuff like setting the egg
base directory via the egg_info command in the setup configuration
file.
dave-shawley added a commit that referenced this pull request Nov 17, 2014
@dave-shawley dave-shawley merged commit cd9337b into master Nov 17, 2014
@dave-shawley dave-shawley deleted the add-egg-support branch November 17, 2014 12:35
dave-shawley pushed a commit that referenced this pull request May 6, 2019
catch my fork up with ionel's
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant