[ python-Bugs-1566719 ] site-packages isn't created before install_egg_info
SourceForge.net
noreply at sourceforge.net
Thu Nov 9 15:55:35 CET 2006
Bugs item #1566719, was opened at 2006-09-27 21:34
Message generated for change (Comment added) made by jfunk
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1566719&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Distutils
Group: Python 2.5
Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: James Oakley (jfunk)
Assigned to: Nobody/Anonymous (nobody)
Summary: site-packages isn't created before install_egg_info
Initial Comment:
install_egg_info is called without creating the site-packages
directory when only a script is specified. This can break
RPM builds since the site-packages directory isn't present
beforehand.
Here's an setup.py that causes this problem::
from distutils.core import setup
setup(name='dot2tex',
version='1.0.1',
description = 'A Graphviz to LaTeX converter',
author = 'Kjell Magne Fauske',
author_email = 'kjellmf at gmail.com',
url = "http://www.fauskes.net/code/dot2tex/",
download_url
= "http://www.fauskes.net/code/dot2tex/download/",
scripts=['dot2tex/dot2tex.py']
)
Here's the build output::
+ python setup.py
install --prefix=/usr --root=/var/tmp/dot2tex-buildroot --record=INSTALLED_FILES
running install
running build
running build_scripts
running install_scripts
creating /var/tmp/dot2tex-buildroot
creating /var/tmp/dot2tex-buildroot/usr
creating /var/tmp/dot2tex-buildroot/usr/bin
copying
build/scripts-2.5/dot2tex.py -> /var/tmp/dot2tex-buildroot/usr/bin
changing mode
of /var/tmp/dot2tex-buildroot/usr/bin/dot2tex.py to 755
running install_egg_info
Writing /var/tmp/dot2tex-buildroot/usr/lib64/python2.5/site-packages/dot2tex-1.0.1-py2.5.egg-info
error: /var/tmp/dot2tex-buildroot/usr/lib64/python2.5/site-packages/dot2tex-1.0.1-py2.5.egg-info:
No such file or directory
----------------------------------------------------------------------
>Comment By: James Oakley (jfunk)
Date: 2006-11-09 10:55
Message:
Logged In: YES
user_id=8314
Hmm. For some reason SF didn't send your response, so I didn't see it.
When building RPM packages, software is installed to a completely
empty directory to avoid pollution to/from the host system. This means
that the installation process should create any needed directories before
trying to copy files to them. This is performed automatically when using
GNU autotools, and in Python when installing scripts and modules.
However, this is not performed when installing egg-info files in 2.5. It's
not a problem when the package includes modules, since the
site-packages directory gets created when the modules are installed
before the egg-info. If a package does not include modules, the directory
is not there and the egg-info installation fails.
----------------------------------------------------------------------
Comment By: SourceForge Robot (sf-robot)
Date: 2006-10-14 23:20
Message:
Logged In: YES
user_id=1312539
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2006-09-28 00:26
Message:
Logged In: YES
user_id=21627
How can there not be a site-packages directory? It is
created with the installation of Python itself, so it is
always there.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1566719&group_id=5470
More information about the Python-bugs-list
mailing list