dusty-phillips / gitifyhg

Tools for using git as a client to mercurial repositories
GNU General Public License v3.0
62 stars 17 forks source link

Don't use path.py for python 2.4 #57

Closed PaulPrice closed 11 years ago

PaulPrice commented 11 years ago

Believe it or not, I have a CentOS system that uses python 2.4, and "easy_install gitifyhg" requires path.py, which does not install for python 2.4:

Searching for path.py
Reading http://pypi.python.org/simple/path.py/
Page at http://pypi.python.org/simple/path.py/ links to .py file(s) without version info; an index scan is required.
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Reading http://github.com/jaraco/path.py
Reading http://www.jorendorff.com/articles/python/path
Download error: (-2, 'Name or service not known') -- Some packages may not be found!
Reading http://www.jorendorff.com/articles/python/path/
Download error: (-2, 'Name or service not known') -- Some packages may not be found!
Reading http://github.com/dottedmag/path.py
Reading http://github.com/dottedmag/celery/tarball/2.2.2
Best match: path.py 3.0.1
Downloading http://pypi.python.org/packages/source/p/path.py/path.py-3.0.1.zip#md5=12dc60ddc03360d4f1b05b1a3a6f02bf
Processing path.py-3.0.1.zip
Running path.py-3.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-8NNc1z/path.py-3.0.1/egg-dist-tmp-kBMX1A
Traceback (most recent call last):
[...]
  File "/home/price/local/Linux.x86_64/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/setuptools/sandbox.py", line 64, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 10
    with open('README.rst') as ld_file:
            ^
SyntaxError: invalid syntax

Please consider removing the path.py requirement (it looks to be 'only' a wrapper) so you can support python 2.4.

jedbrown commented 11 years ago

The 'with' statement is used in many places within gitifyhg. You should upgrade your Python.

On Wed, Mar 13, 2013 at 5:49 PM, Paul Price notifications@github.comwrote:

Believe it or not, I have a CentOS system that uses python 2.4, and "easy_install gitifyhg" requires path.py, which does not install for python 2.4:

Searching for path.py Reading http://pypi.python.org/simple/path.py/ Page at http://pypi.python.org/simple/path.py/ links to .py file(s) without version info; an index scan is required. Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ Reading http://github.com/jaraco/path.py Reading http://www.jorendorff.com/articles/python/path Download error: (-2, 'Name or service not known') -- Some packages may not be found! Reading http://www.jorendorff.com/articles/python/path/ Download error: (-2, 'Name or service not known') -- Some packages may not be found! Reading http://github.com/dottedmag/path.py Reading http://github.com/dottedmag/celery/tarball/2.2.2 Best match: path.py 3.0.1 Downloading http://pypi.python.org/packages/source/p/path.py/path.py-3.0.1.zip#md5=12dc60ddc03360d4f1b05b1a3a6f02bf Processing path.py-3.0.1.zip Running path.py-3.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-8NNc1z/path.py-3.0.1/egg-dist-tmp-kBMX1A Traceback (most recent call last): [...] File "/home/price/local/Linux.x86_64/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/setuptools/sandbox.py", line 64, in {'file':setup_script, 'name':'main'} File "setup.py", line 10 with open('README.rst') as ld_file: ^ SyntaxError: invalid syntax

Please consider removing the path.py requirement (it looks to be 'only' a wrapper) so you can support python 2.4.

— Reply to this email directly or view it on GitHubhttps://github.com/buchuki/gitifyhg/issues/57 .

PaulPrice commented 11 years ago

It's on a cluster. ): Guess I'll have to build my own python.... Yeah, that works. Might make things a bit more difficult in cron scripts etc, but I'll make it work. Thanks!

jedbrown commented 11 years ago

Not harder at all. As with any package, just use ~/path/to/python2.7 setup.py install --prefix=.....