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

PyPy build failing when headers argument supplied to distutils.core.setup #3069

Closed
syllog1sm opened this issue Dec 30, 2014 · 3 comments
Closed

Comments

@syllog1sm
Copy link

Hi,

I'm attempting to build a Python project that packages a C extension, and requires that header files be installed. The build succeeds in Python 2.7 and Python 3.4, and my local build succeeds with PyPy --- but the PyPy build fails on Travis, giving a permission error when it attempts to install the header files into the PyPy virtualenv:

https://travis-ci.org/syllog1sm/cython-murmurhash/jobs/45425637

The relevant part of the log seems to be:

running install_headers
creating /home/travis/virtualenv/pypy-2.4.0/include/site
error: could not create '/home/travis/virtualenv/pypy-2.4.0/include/site': Permission denied

Quite new to Travis so this could be my bad. But, I'd say this is a slightly obscure combination of things, so it may well be a bug on your end.

Cheers
Matt.

@BanzaiMan
Copy link
Contributor

https://travis-ci.org/BanzaiMan/travis_production_test/builds/45426953#L102

It seems this is how PyPy or pyenv installs headers; a symbolic link to /opt/python/pypy-2.4.0/include.

@dstufft @alex Do you have suggestions?

@syllog1sm
Copy link
Author

Hmm, you're right --- it's a symbolic link on my machine too; it's just that my user had permissions to write that directory...Sadness!

So, I guess I/we should take this up with either PyPy or virtualenv? This isn't the same behaviour as CPython virtualenv

@syllog1sm
Copy link
Author

Known issue with virtualenv.

pypa/virtualenv#510

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

2 participants