Bug 66707 - python2 should include Makefile
Summary: python2 should include Makefile
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: python2
Version: 7.3
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2002-06-13 21:37 UTC by Michael Stenner
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2002-06-13 21:37:39 UTC

Attachments (Terms of Use)

Description Michael Stenner 2002-06-13 21:37:33 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.0 (X11; Linux i686; U;) Gecko/20020509

Description of problem:
The python standard module packaging system, distutils, requires that the python
Makefile be present on the system.  You include the makefile in python2-devel
rather than in python2.  This prevents users from installing python modules
distributed that way.  (Especially nasty since distutils provides a convenient
"install this in my homedir" option that's great for non-root folks.)

They python people consider the Makefile an essential part of a python distribution.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. run "python2 setup.py install" on a box without python2-devel
2. watch error happen
3. slap forehead

If you want a module to test with, although that's bordering on silly, use

Additional info:

elmo$ python2 setup.py install 
running install
Traceback (most recent call last):
  File "setup.py", line 12, in ?
  File "/tmp/32444-i386/install/usr/lib/python2.1/distutils/core.py", line 138,
in setup
  File "/tmp/32444-i386/install/usr/lib/python2.1/distutils/dist.py", line 899,
in run_commands
  File "/tmp/32444-i386/install/usr/lib/python2.1/distutils/dist.py", line 918,
in run_command
  File "/usr/lib/python2.1/cmd.py", line 112, in ensure_finalized
    return self.default(line)
  File "/tmp/32444-i386/install/usr/lib/python2.1/distutils/command/install.py",
line 256, in finalize_options
  File "/tmp/32444-i386/install/usr/lib/python2.1/distutils/sysconfig.py", line
370, in get_config_vars
  File "/tmp/32444-i386/install/usr/lib/python2.1/distutils/sysconfig.py", line
302, in _init_posix
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to
open /usr/lib/python2.1/config/Makefile (No such file or directory)

Comment 1 Trond Eivind Glomsrxd 2002-06-14 22:07:52 UTC
It's in python-devel, which you'll need for installing those modules.

Note You need to log in before you can comment on or make changes to this bug.