[Python-modules-team] Bug#625784: Bug#625784: (no subject)

Barry Warsaw barry at python.org
Tue May 24 19:23:07 UTC 2011


On May 22, 2011, at 08:22 PM, Carl Chenet wrote:

>Le 06/05/2011 20:02, Barry Warsaw a écrit :
>> Actually, try this patch.  (I'm having some difficulty committing this to svn.)
>>    >    Hi Barry,
>
>I'm testing your patch and it works just fine for python3.1 but I have an
>issue I can not explain yet with python3.2. Here is the log :

Interesting.  I tried this on both Natty and Wheezy, with Debian's
python-virtualenv-1.6-2 patched with diff I attached to the issue tracker.  In
both cases, it worked fine for me with -p python3.2:

@chemistry[~:291]% virtualenv -v -p python3.2 /tmp/xx32
Running virtualenv with interpreter /usr/bin/python3.2
Creating /tmp/xx32/lib/python3.2
Symlinking Python bootstrap modules
  Symlinking /tmp/xx32/lib/python3.2/lib-dynload
  Symlinking /tmp/xx32/lib/python3.2/config-3.2mu
  Symlinking /tmp/xx32/lib/python3.2/os.py
  Ignoring built-in bootstrap module: posix
  Symlinking /tmp/xx32/lib/python3.2/posixpath.py
  Cannot import bootstrap module: nt
  Symlinking /tmp/xx32/lib/python3.2/ntpath.py
  Symlinking /tmp/xx32/lib/python3.2/genericpath.py
  Symlinking /tmp/xx32/lib/python3.2/fnmatch.py
  Symlinking /tmp/xx32/lib/python3.2/locale.py
  Symlinking /tmp/xx32/lib/python3.2/encodings
  Symlinking /tmp/xx32/lib/python3.2/codecs.py
  Symlinking /tmp/xx32/lib/python3.2/stat.py
  Cannot import bootstrap module: UserDict
  Cannot import bootstrap module: copy_reg
  Symlinking /tmp/xx32/lib/python3.2/types.py
  Symlinking /tmp/xx32/lib/python3.2/re.py
  Cannot import bootstrap module: sre
  Symlinking /tmp/xx32/lib/python3.2/sre_parse.py
  Symlinking /tmp/xx32/lib/python3.2/sre_constants.py
  Symlinking /tmp/xx32/lib/python3.2/sre_compile.py
  Ignoring built-in bootstrap module: zlib
  Symlinking /tmp/xx32/lib/python3.2/_abcoll.py
  Symlinking /tmp/xx32/lib/python3.2/warnings.py
  Symlinking /tmp/xx32/lib/python3.2/linecache.py
  Symlinking /tmp/xx32/lib/python3.2/abc.py
  Symlinking /tmp/xx32/lib/python3.2/io.py
  Symlinking /tmp/xx32/lib/python3.2/_weakrefset.py
  Symlinking /tmp/xx32/lib/python3.2/copyreg.py
  Symlinking /tmp/xx32/lib/python3.2/tempfile.py
  Symlinking /tmp/xx32/lib/python3.2/random.py
  Symlinking /tmp/xx32/lib/python3.2/__future__.py
  Symlinking /tmp/xx32/lib/python3.2/collections.py
  Symlinking /tmp/xx32/lib/python3.2/keyword.py
  Symlinking /tmp/xx32/lib/python3.2/tarfile.py
  Symlinking /tmp/xx32/lib/python3.2/shutil.py
  Symlinking /tmp/xx32/lib/python3.2/struct.py
  Symlinking /tmp/xx32/lib/python3.2/copy.py
Creating /tmp/xx32/lib/python3.2/site-packages
Writing /tmp/xx32/lib/python3.2/site.py
Writing /tmp/xx32/lib/python3.2/orig-prefix.txt
Creating parent directories for /tmp/xx32/include
Symlinking /tmp/xx32/include/python3.2mu
Creating /tmp/xx32/bin
New python executable in /tmp/xx32/bin/python3.2
Changed mode of /tmp/xx32/bin/python3.2 to 0o775
Also creating executable in /tmp/xx32/bin/python
Changed mode of /tmp/xx32/bin/python to 0o775
Testing executable with /tmp/xx32/bin/python3.2 -c "import sys; print(sys.prefix)"
Got sys.prefix result: '/tmp/xx32'
Please make sure you remove any previous custom paths from your /home/barry/.pydistutils.cfg file.
Creating /tmp/xx32/lib/python3.2/distutils
Writing /tmp/xx32/lib/python3.2/distutils/__init__.py
Writing /tmp/xx32/lib/python3.2/distutils/distutils.cfg
Installing distribute.................................................................................................................................................................................................................................................................................................................................done.
Installing pip-1.0.tar.gz
  Processing pip-1.0.tar.gz
  Running pip-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-c65cin/pip-1.0/egg-dist-tmp-o70zdq
  warning: no files found matching '*.html' under directory 'docs'
  warning: no previously-included files matching '*.txt' found under directory 'docs/_build'
  no previously-included directories found matching 'docs/_build/_sources'
  Adding pip 1.0 to easy-install.pth file
  Processing dependencies for pip==1.0
  Finished processing dependencies for pip==1.0
Writing /tmp/xx32/bin/activate
Writing /tmp/xx32/bin/activate.fish
Writing /tmp/xx32/bin/activate_this.py
Writing /tmp/xx32/bin/activate.csh

>And indeed files seem missing in the virtual environment :
>
># tree TMP32/
>TMP32/
>├── bin
>│ ├── python
>│ └── python3.2

I've got these files:

@chemistry[~:292]% ls /tmp/xx32/bin
activate      activate.fish	easy_install*	   pip*      python*
activate.csh  activate_this.py	easy_install-3.2*  pip-3.2*  python3.2*

Other than the basic problem with site-packages/dist-packages, everything
seems to work pretty well.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20110524/b9a5f5fe/attachment.pgp>


More information about the Python-modules-team mailing list