Issues

Issue #61 invalid

py2app run in virtualenv does not copy Python.framework

Michael McCracken
created an issue

Attempting to build the twisted example, I find that when using a virtualenv (in which I'd installed pyobjc and pyobjc-framework-Cocoa), py2app doesn't copy Python.framework in the generated app's Frameworks directory.

A workaround is to just install pyobjc outside of the virtualenv and not use virtualenv.

I briefly looked at the source and couldn't tell where copy_python_framework was getting called (that is, where copy_framework would be called).

Comments (4)

  1. Ronald Oussoren repo owner

    Bah. Py2app already contains code to do the right thing with virtualenv, but that obviously doesn't work correctly (either because of bitrot, or because of changes in virtualenv that broke py2apps detection of virtualenv). The virtualenv support code is in build_app.py, in particular in method get_runtime.

    Copy_framework should be called through the PythonStandalone class (in the create_binaries method of class py2app)

  2. Ronald Oussoren repo owner

    I cannot reproduce this using the tip of the tree, virtualenv 1.8.2 (which I got with 'easy_install -U virtualenv') and a Python framework.

    I've verified that the build from the virtualenv triggered py2app's virtualenv support code.

  3. Log in to comment