Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix name collision with lxml's setupinfo.py#69

Merged
bgaifullin merged 1 commit intoxmlsec:masterxmlsec/python-xmlsec:masterfrom
sindrig:mastersindrig/python-xmlsec:masterCopy head branch name to clipboard
Aug 15, 2017
Merged

Fix name collision with lxml's setupinfo.py#69
bgaifullin merged 1 commit intoxmlsec:masterxmlsec/python-xmlsec:masterfrom
sindrig:mastersindrig/python-xmlsec:masterCopy head branch name to clipboard

Conversation

@sindrig
Copy link

@sindrig sindrig commented Aug 15, 2017

When installing (ubuntu and arch, python 3.6.2 and python 3.5.x), lxml installation fails because it tries to import its own setupinfo.py, but gets python-xmlsec's setupinfo.py. Rename the module to make sure we don't get another name collision.

When installing (ubuntu and arch, python 3.6.2 and python 3.5.x), lxml installation fails because it tries to import its own `setupinfo.py`, but gets python-xmlsec's `setupinfo.py`. Rename the module to make sure we don't get another name collision.
@bgaifullin
Copy link
Collaborator

How does it happen. setupinfo is local file inside of package. why lxml tries to import file from xmlsec?

@bgaifullin
Copy link
Collaborator

Can you describe case step by step ?

@sindrig
Copy link
Author

sindrig commented Aug 15, 2017

Not quite sure, but I suspect it's because you've imported setuptools in setup.py and it is in sys.modules. When lxml's setup.py imports setuptools it first searches in sys.modules.

@bgaifullin
Copy link
Collaborator

I got it, thank you.

@bgaifullin bgaifullin merged commit dcf9241 into xmlsec:master Aug 15, 2017
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.