Setup fails without Setuptools

Bug #604430 reported by Randy Heydon on 2010-07-12
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".

Randy Heydon (randy-heydon) wrote :
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  Edit
Everyone can see this information.

Other bug subscribers