Skip to content

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

Merged
bgaifullin merged 1 commit intoxmlsec:masterfrom
sindrig:master
Aug 15, 2017
Merged

Fix name collision with lxml's setupinfo.py#69
bgaifullin merged 1 commit intoxmlsec:masterfrom
sindrig:master

Conversation

@sindrig
Copy link
Copy Markdown

@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
Copy Markdown
Collaborator

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

@bgaifullin
Copy link
Copy Markdown
Collaborator

Can you describe case step by step ?

@sindrig
Copy link
Copy Markdown
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
Copy Markdown
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