[MacPorts] #45279: py33-enchant @1.6.5 Installation Failure due to distribute_setup

MacPorts noreply at macports.org
Tue Oct 7 05:21:56 PDT 2014


#45279: py33-enchant @1.6.5 Installation Failure due to distribute_setup
------------------------+--------------------------------
 Reporter:  quantum7@…  |      Owner:  macports-tickets@…
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.3.1
 Keywords:              |       Port:
------------------------+--------------------------------
 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
 _python_cmd('setup.py', '-q', 'bdist_egg', '--dist-dir', to_dir)
 }}}

 In the setuptools at 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:

 {{{#!python
 #import distribute_setup
 #distribute_setup.use_setuptools()
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/45279>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list