Skip to content

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