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

don't rely on distutils.sysconfig directly to determine Python lib dir #156

Merged
merged 10 commits into from Mar 28, 2013

Conversation

boegel
Copy link
Member

@boegel boegel commented Mar 27, 2013

We shouldn't rely on distutils.sysconfig.get_python_lib() directly to determine the Python library dir 'lib/python%(python_version)s/site-packages', since that will return the value for the system Python, not for the Python module that was loaded.

@fgeorgatos
Copy link
Collaborator

reviewed, looks good.

@boegel
Copy link
Member Author

boegel commented Mar 27, 2013

@fgeorgatos: You reviewed too early. ;-)

"""Prepare by determining Python site lib dir."""

# we can't simply import distutils.sysconfig, because then we would be talking to the system Python
cmd = ' '.join(['python -c "',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you think it helps readability, being the dict one line below (as we do in other dictionary items);
other than that, I have no more remarks, at least from a visual check of the code. It seems like a code factorization effort, good.

@stdweird
Copy link
Contributor

@boegel looks fine by me

@boegel
Copy link
Member Author

boegel commented Mar 28, 2013

Fixed bugs, tested, works as expected now, so merging it in.

boegel added a commit that referenced this pull request Mar 28, 2013
don't rely on distutils.sysconfig directly to determine Python lib dir
@boegel boegel merged commit 0d2a4c3 into easybuilders:develop Mar 28, 2013
@boegel boegel deleted the revert_pyver branch March 28, 2013 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants