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

Fixes for Python 3.3 #43

Merged
merged 3 commits into from
Jan 10, 2014
Merged

Conversation

astrofrog
Copy link
Contributor

With these changes, I can run asv with Python 3

@astrofrog
Copy link
Contributor Author

@mdboom - there is one more issue that I'm not sure how to address. When it installs astropy, it detects the system installed version and tries to uninstall it and fails:

Unpacking ./astropy
  Running setup.py egg_info for package from file:///Volumes/Raptor/asv/astropy-benchmarks/astropy
    Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz
    Extracting in /var/folders/zq/64w93jcj22366sbdv9wqvh6c0000gq/T/tmppstoj6
    Now working in /var/folders/zq/64w93jcj22366sbdv9wqvh6c0000gq/T/tmppstoj6/distribute-0.6.28
    Building a Distribute egg in /private/var/folders/zq/64w93jcj22366sbdv9wqvh6c0000gq/T/pip-npe8zj-build
    RefactoringTool: Skipping implicit fixer: buffer
    RefactoringTool: Skipping implicit fixer: idioms
    RefactoringTool: Skipping implicit fixer: set_literal
    RefactoringTool: Skipping implicit fixer: ws_comma
    [snip]
    /private/var/folders/zq/64w93jcj22366sbdv9wqvh6c0000gq/T/pip-npe8zj-build/distribute-0.6.28-py3.3.egg
    Freezing version number to astropy/version.py

    warning: no files found matching 'astropy/utils/misc/data/.hidden_file.txt'
    warning: no previously-included files found matching '*.pyc'
    warning: no previously-included files found matching '*.o'
    no previously-included directories found matching 'docs/_build'
    no previously-included directories found matching 'build'
Requirement already satisfied (use --upgrade to upgrade): numpy in /Volumes/Raptor/Library/Python/3.3/lib/python/site-packages (from astropy==0.3.dev4071)
Installing collected packages: astropy
  Found existing installation: astropy 0.2.5
    Uninstalling astropy:
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/shutil.py", line 522, in move
    os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: '/var/folders/zq/64w93jcj22366sbdv9wqvh6c0000gq/T/pip-y9dtaw-uninstall/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/astropy'

I'm surprised it even knows about the system version since it's supposed to be in a virtualenv, right?

@mdboom
Copy link
Collaborator

mdboom commented Jan 10, 2014

Thanks. The test coverage obviously needs some work...

As for the last thing, I think there's something deeper going on -- I'll have a look.

@mdboom
Copy link
Collaborator

mdboom commented Jan 10, 2014

The virtualenvs are created with --no-site-packages such that they shouldn't have access to the system site-packages (which is actually the default behavior as of virtualenv 1.11). What version of virtualenv do you have installed? The snippet you've posted -- is that from ~/.pip/pip.log or something? It doesn't look like the output of asv...

mdboom added a commit that referenced this pull request Jan 10, 2014
@mdboom mdboom merged commit 4827374 into airspeed-velocity:master Jan 10, 2014
@mdboom mdboom mentioned this pull request Jan 10, 2014
@astrofrog
Copy link
Contributor Author

@mdboom - just saw your question above - the output above is the captured stdout from asv.

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.

None yet

2 participants