[ python-Bugs-1566719 ] site-packages isn't created before install_egg_info

SourceForge.net noreply at sourceforge.net
Sat Sep 30 12:49:53 CEST 2006


Bugs item #1566719, was opened at 2006-09-28 00:34
Message generated for change (Settings changed) made by gbrandl
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: Pending
Resolution: None
Priority: 5
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: Martin v. Löwis (loewis)
Date: 2006-09-28 03: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