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

Prevent "duplicate entry __init__.pyc" #21

Open
NiklasRosenstein opened this issue Jun 5, 2018 · 0 comments
Open

Prevent "duplicate entry __init__.pyc" #21

NiklasRosenstein opened this issue Jun 5, 2018 · 0 comments

Comments

@NiklasRosenstein
Copy link
Collaborator

Namespace packages all have their own __init__.pyc but usually with the same content as other packages in the same namespace. Packaging multiple packages of the same namespace into a single .egg adds all of their __init__.pyc files to the ZIP file, resulting in multiple entries of the same file.

We should check if the file being added already exists. If it does, we should then check if the file is just a namespace indicator. If it is, we can omitt it. Otherwise we should warn the user and still add multiple entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant