"Lite" vs. "Full" Python Ports

Jannis Leidel jannis at leidel.info
Tue Apr 28 00:02:35 PDT 2009


> I've also looked through older port versions. None of them changes  
> the "python.pkgd" setting. Thus those modules will always get  
> installed into the site-packages directory and will not be imported.

So this means the fix is ready for checkin? Is there anything I can do?

> On 16.04.2009, at 13:34, Jannis Leidel wrote:
>>> Optimally, having an older version of one of the modules (eg, py25- 
>>> hashlib
>>> at 2.5.2) installed with python25 at 2.5.4 with hashlib builtin,  
>>> would be a
>>> meaningful test.  Then trying it with various bits that affect how  
>>> modules
>>> are loaded (eg, normal, with -S, others?) would answer it fully I  
>>> think.
>>
>> I haven't been able to downgrade the installed py25-hashlib to  
>> 2.5.2 but did some tests with python25 with the builtin hashlib and py25-hashlib at 2.5.4_0 
>>  installed. I also tested with a virtualenv and a sandboxed  
>> virtualenv (--no-site-packages).
>>
>> ~ $ python
>> Python 2.5.4 (r254:67916, Apr 10 2009, 23:33:06)
>> [GCC 4.0.1 (Apple Inc. build 5490)] on darwin
>> Type "help", "copyright", "credits" or "license" for more  
>> information.
>> >>> import hashlib
>> >>> hashlib.__file__
>> '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> python2.5/hashlib.pyc'
>> >>>
>> ~ $ python -S
>> Python 2.5.4 (r254:67916, Apr 10 2009, 23:33:06)
>> [GCC 4.0.1 (Apple Inc. build 5490)] on darwin
>> >>> import hashlib
>> >>> hashlib.__file__
>> '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> python2.5/hashlib.pyc'
>> >>>
>> ~ $ python -c "import hashlib; print hashlib.__file__"
>> /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> python2.5/hashlib.pyc
>> ~ $
>> ~ $ port installed | grep py25-virtualenv
>> py25-virtualenv @1.3.2_0 (active)
>> ~ $ which virtualenv
>> /opt/local/bin/virtualenv
>> ~ $
>> ~ $ virtualenv hashlib-test
>> New python executable in hashlib-test/bin/python
>> Installing setuptools............done.
>> ~ $ source hashlib-test/bin/ac
>> activate          activate_this.py
>> ~ $ source hashlib-test/bin/activate
>> (hashlib-test)~ $ which python
>> /Users/Jannis/hashlib-test/bin/python
>> (hashlib-test)~ $ python
>> Python 2.5.4 (r254:67916, Apr 10 2009, 23:33:06)
>> [GCC 4.0.1 (Apple Inc. build 5490)] on darwin
>> Type "help", "copyright", "credits" or "license" for more  
>> information.
>> >>> import hashlib
>> >>> hashlib.__file__
>> '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> python2.5/hashlib.pyc'
>> >>>
>> (hashlib-test)~ $ python -c "import hashlib; print hashlib.__file__"
>> /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> python2.5/hashlib.pyc
>> (hashlib-test)~ $ deactivate
>> ~ $
>> ~ $
>> ~ $ virtualenv --no-site-packages hashlib-test2
>> New python executable in hashlib-test2/bin/python
>> Installing setuptools............done.
>> ~ $ source hashlib-test2/bin/activate
>> (hashlib-test2)~ $ python
>> Python 2.5.4 (r254:67916, Apr 10 2009, 23:33:06)
>> [GCC 4.0.1 (Apple Inc. build 5490)] on darwin
>> Type "help", "copyright", "credits" or "license" for more  
>> information.
>> >>> import hashlib
>> >>> hashlib.__file__
>> '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
>> python2.5/hashlib.pyc'
>> >>>
>>
>> Jannis
>> _______________________________________________
>> macports-dev mailing list
>> macports-dev at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
>
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev



More information about the macports-dev mailing list