[Python-Leipzig] Python-Stammtisch in Leipzig, 10.08.2010, 20:00 Uhr

Markus Zapke-Gründemann markuszapke at gmx.net
Do Aug 12 22:34:56 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hallo Markus.

markus espenhain schrieb:
> folie 29: "Python Version wählbar (symlink)"
> 
> extra noch mal geguckt
> 
> maresp at huluvu ~ $ l ~/.venvs/sbweb/bin/
> total 64
> drwxr-xr-x 2 maresp maresp 4096 Aug 11 18:00 ./
> drwxr-xr-x 5 maresp maresp 4096 Aug 11 18:00 ../
> ...
> -rwxr-xr-x 1 maresp maresp 6104 Aug 11 05:04 python*
> -rwxr-xr-x 1 maresp maresp 6104 Aug 11 05:28 python2.6*
> 
> ... und ich hatte das auch noch richtig im kopf *g*
> 
> For a while I tried to refactor and improve workingenv, but it didn’t go
> very well. So I decided to ditch it completely and revisit the ideas of
> virtual-python.py. That script works by copying the Python executable,
> and in doing so change sys.prefix — it’s pretty consistent that all
> other paths in Python derive from sys.prefix.
> 
> http://blog.ianbicking.org/2007/10/10/workingenv-is-dead-long-live-virtualenv/
Stimmt, was die Python Executable angeht hast du recht. Das ist wirklich
kein Symlink.

Allerdings sind die ganzen Bibliotheken Symlinks:

lib/python2.6/
|-- UserDict.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/UserDict.py
|-- _abcoll.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/_abcoll.py
|-- abc.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/abc.py
|-- codecs.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/codecs.py
|-- copy_reg.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/copy_reg.py
|-- distutils
|-- fnmatch.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/fnmatch.py
|-- genericpath.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/genericpath.py
|-- linecache.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/linecache.py
|-- locale.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py
|-- ntpath.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ntpath.py
|-- os.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.py
|-- posixpath.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py
|-- re.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/re.py
|-- site-packages
|-- site.py
|-- sre.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/sre.py
|-- sre_compile.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/sre_compile.py
|-- sre_constants.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/sre_constants.py
|-- sre_parse.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/sre_parse.py
|-- stat.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/stat.py
|-- types.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/types.py
`-- warnings.py ->
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/warnings.py

2 directories, 21 files

Diese hängen ja auch von der Python Version ab.

Ich sollte es also genauer formulieren, dass nur die Bibliotheken
Symlinks sind, die Executable aber nicht. Vielen Dank für deinen Hinweis
und die Recherche!


Viele Grüße

Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMZHcQAAoJEE1f0MEMWBdFIUsH/AsSBwnJkmoWu9jyRcjCTcXl
RqKXpRodBT8aDnIev3mBb9dzzw0MCNXXzegFB35vYfZyHvK4jGZlVLv+YGJGGomr
GTUdRm2nh+i/yk76Ady8/osw4eGPVoWNTavD9aE4zCXGvfiBu/i0+m0lSbiCOrCE
nfUImMllYZQTtSBKt3Oz6uocvrQsdIESLKLcmm12GwZsGFmbwHn6mLZaNifAmEU8
3wXiuO/1eQsqoG1WS8QWW8nHLylGSLbCLaaMNYmdkpMWnnjKqoSKWSXveBuVKlz8
n2NrGtTi6VfBuiOHidY24dv/tw5dKyTtfxpk8a4t7RIrGo2baJBy/LWjfyU819U=
=SPDf
-----END PGP SIGNATURE-----



Mehr Informationen über die Mailingliste Python-Leipzig