Port for python26: batteries not included (or available)?

Brett Hoerner bretthoerner at gmail.com
Sat Oct 4 06:50:04 PDT 2008


It seems that the Port for python26 doesn't include many of the
batteries that come with python, nor are there ports to install them
by hand.  Port python25 has the following corresponding ports,

py25-bsddb
py25-bz2
py25-curses
py25-gdbm
py25-hashlib
py25-readline
py25-socket-ssl
py25-sqlite3
py25-tkinter
py25-zlib

If I download the Python 2.6 source myself and do a simple ./configure
&& make, the modules are compiled (and ready for install),

brett at passenger:~/Desktop/Python-2.6$ ./configure && make
brett at passenger:~/Desktop/Python-2.6$ ./python.exe
Python 2.6 (r26:66714, Oct  4 2008, 08:42:59)
[GCC 4.0.1 (Apple Inc. build 5488)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import bz2
>>> bz2.__file__
'/Users/brett/Desktop/Python-2.6/build/lib.macosx-10.3-i386-2.6/bz2.so'

But using the MacPorts Python 2.6 I get the following,

brett at passenger:~$ which python
/opt/local/bin/python

brett at passenger:~$ python
Python 2.6 (r26:66714, Oct  3 2008, 21:39:31)
[GCC 4.0.1 (Apple Inc. build 5488)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import bz2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named bz2

I don't see a way to install these through ports.  It's very possible
that I'm missing something, could anyone give me a hand?

Thanks!
Brett


More information about the macports-users mailing list