Opened 10 years ago

Closed 9 years ago

#45279 closed defect (fixed)

py33-enchant @1.6.5 Installation Failure due to distribute_setup

Reported by: quantum7@… Owned by: petrrr
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: jenstroeger (Jens Troeger)
Port: py-enchant

Description

Installing py33-enchant I got the following error (full log attached):

:info:build usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
:info:build    or: setup.py --help [cmd1 cmd2 ...]
:info:build    or: setup.py --help-commands
:info:build    or: setup.py cmd --help
:info:build 
:info:build error: invalid command 'bdist_egg'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-enchant/py33-enchant/work/pyenchant-1.6.5/distribute-0.6.10-py3.3.egg
:info:build Traceback (most recent call last):
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-enchant/py33-enchant/work/pyenchant-1.6.5/distribute_setup.py", line 143, in use_setuptools
:info:build     raise ImportError
:info:build ImportError

This seems to be due to the inclusion of distribute_setup, which attempts to download and install setuptools 0.6.10. First off, the use of distribute_setup should be unnecessary since py33-enchant depends on py33-setuptools (currently @6.0.2). However, the error occurs in distribute_setup.py:109, which tries to build the setuptools egg using setuptools cli syntax:

_python_cmd('setup.py', '-q', 'bdist_egg', '--dist-dir', to_dir)

In the setuptools@0.6.10 downloaded from pypi, that setup.py file requires distutils syntax (install rather than bdist_egg).

To solve this, either the circular dependency on setuptools needs to be removed from distribute_setup.py, or maybe distribute_setup can be dropped all together. For me, commenting out the following lines from the top of py33-enchant's setup.py worked as a work-around:

#import distribute_setup
#distribute_setup.use_setuptools()

Attachments (1)

py33-enchant.log (48.5 KB) - added by quantum7@… 10 years ago.
main.log

Download all attachments as: .zip

Change History (10)

Changed 10 years ago by quantum7@…

Attachment: py33-enchant.log added

main.log

comment:1 Changed 10 years ago by quantum7@…

Cc: quantum7@… added

Cc Me!

comment:2 Changed 10 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:3 Changed 10 years ago by petrrr

Cc: quantum7@… removed

Note that you do not need to CC yourself.

comment:4 Changed 10 years ago by petrrr

Owner: changed from macports-tickets@… to petr@…
Status: newassigned

comment:5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jens.troeger@… added
Port: py-enchant added

Has duplicate #45660.

comment:6 Changed 9 years ago by petrrr

Cc: petr@… removed

Cc Me!

comment:7 Changed 9 years ago by petrrr

Changeset r127484 updates to 1.6.6 and should resolve this problem.

comment:8 Changed 9 years ago by petrrr

Removed py31 and py32 subport in r127487.

comment:9 Changed 9 years ago by petrrr

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.