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

move extension into package - without relative imports. #587

Closed
wants to merge 1 commit into from

Conversation

mindw
Copy link
Contributor

@mindw mindw commented Feb 9, 2015

No description provided.

@giampaolo
Copy link
Owner

Changing the C extension path in setup.py causes the same problem I described in #578 (importing psutil from its root source directory):

>>> import psutil
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "psutil/__init__.py", line 63, in <module>
    from psutil import _pslinux as _psplatform
  File "psutil/_pslinux.py", line 26, in <module>
    import psutil._psutil_linux as cext
ImportError: No module named _psutil_linux
>>> 

I think there's no way around that.

@mindw
Copy link
Contributor Author

mindw commented Feb 9, 2015

Did you do setup.py build_ext -f -i before opening the prompt?
On Feb 9, 2015 1:07 PM, "giampaolo" [email protected] wrote:

Changing the C extension path in setup.py causes the same problem I
described in #578 #578
(importing psutil from its root source directory):

import psutil
Traceback (most recent call last):
File "", line 1, in
File "psutil/init.py", line 63, in
from psutil import _pslinux as _psplatform
File "psutil/_pslinux.py", line 26, in
import psutil._psutil_linux as cext
ImportError: No module named _psutil_linux

I think there's no way around that.


Reply to this email directly or view it on GitHub
#587 (comment).

@giampaolo giampaolo closed this in ea88536 Feb 9, 2015
@giampaolo
Copy link
Owner

setup.py build_ext -i did the trick. I reapplied your original changes. Thanks a lot.

@mindw mindw deleted the move_ext_2_branch_no_relatives branch February 9, 2015 15:29
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