Problem installing distribute in python 3.3

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problem installing distribute in python 3.3

Anthony Kong
Hi, all,

I have built python3.3 from source. I want to use pip which has a dependency on setuptools. This's why I am here.

I have followed these steps here (http://packages.python.org/distribute/index.html) to initiate the distribute installation:

python3 distribute_setup.py


Up to this point I got a lot byte-compiling exceptions. Here is a partial listing:

====================================

byte-compiling /Users/antkong/local/lib/python3.3/site-packages/setuptools/command/alias.py to alias.cpython-33.pyc
  File "/Users/antkong/local/lib/python3.3/site-packages/setuptools/command/alias.py", line 12
    if arg.split()<>[arg]:
                   ^
SyntaxError: invalid syntax

byte-compiling /Users/antkong/local/lib/python3.3/site-packages/setuptools/command/bdist_egg.py to bdist_egg.cpython-33.pyc
  File "/Users/antkong/local/lib/python3.3/site-packages/setuptools/command/bdist_egg.py", line 410
    if safe is None or bool(safe)<>flag:
                                  ^
SyntaxError: invalid syntax


====================================

It looks like distribute is shipping python 2 code.

Any suggestion or idea?

Cheers






_______________________________________________
Distutils-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/distutils-sig