Setup fails without Setuptools

Bug #604430 reported by Randy Heydon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
objgraph
Fix Released
Undecided
Unassigned

Bug Description

setup.py opens with four lines to import the "setup" function. First it tries importing from setuptools, then from distutils.

However, the setup function is actually found in distutils.core. Therefore, if setuptools is not available, the import and subsequent installation will fail.

To solve: replace "from distutils import setup" with "from distutils.core import setup".

Revision history for this message
Randy Heydon (randy-heydon) wrote :
Revision history for this message
Marius Gedminas (mgedmin) wrote :

Thank you for the patch; applied. I'll push a new release to PyPI soon.

(Incidentally, unified diffs are easier to read and apply; diff -u is your friend.)

Changed in objgraph:
status: New → Fix Committed
Changed in objgraph:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.