Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

bdist_rpm causes traceback looking for a non-existant file #107

Closed
ipython opened this Issue · 3 comments

3 participants

@ipython

Original Launchpad bug 483918: https://bugs.launchpad.net/ipython/+bug/483918
Reported by: riggs (Benjamin Riggs).

[ipython-0.10]$ python2.6 -i setup.py bdist_rpm
Traceback (most recent call last):
  File "setup.py", line 146, in 
    [ target_update(*t) for t in to_update ]
  File "/var/tmp/BUILD/ipython-0.10/IPython/genutils.py", line 605, in target_update
    if target_outdated(target,deps):
  File "/var/tmp/BUILD/ipython-0.10/IPython/genutils.py", line 589, in target_outdated
    dep_time = os.path.getmtime(dep)
  File "/usr/lib/python2.6/genericpath.py", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: 'docs/man/ipcluster.1'
...
(Pdb) to_update
[('docs/man/ipcluster.1.gz', ['docs/man/ipcluster.1'], 'cd docs/man && gzip -9c ipcluster.1 > ipcluster.1.gz'), ('docs/man/ipcontroller.1.gz', ['docs/man/ipcontroller.1'], 'cd docs/man && gzip -9c ipcontroller.1 > ipcontroller.1.gz'), ('docs/man/ipengine.1.gz', ['docs/man/ipengine.1'], 'cd docs/man && gzip -9c ipengine.1 > ipengine.1.gz'), ('docs/man/ipython.1.gz', ['docs/man/ipython.1'], 'cd docs/man && gzip -9c ipython.1 > ipython.1.gz'), ('docs/man/ipython-wx.1.gz', ['docs/man/ipython-wx.1'], 'cd docs/man && gzip -9c ipython-wx.1 > ipython-wx.1.gz'), ('docs/man/ipythonx.1.gz', ['docs/man/ipythonx.1'], 'cd docs/man && gzip -9c ipythonx.1 > ipythonx.1.gz'), ('docs/man/irunner.1.gz', ['docs/man/irunner.1'], 'cd docs/man && gzip -9c irunner.1 > irunner.1.gz'), ('docs/man/pycolor.1.gz', ['docs/man/pycolor.1'], 'cd docs/man && gzip -9c pycolor.1 > pycolor.1.gz')]
...
[ipython-0.10]$ ls -A docs/man/
ipcluster.1.gz  ipcontroller.1.gz  ipengine.1.gz  ipython.1.gz  ipython-wx.1.gz  ipythonx.1.gz  irunner.1.gz  pycolor.1.gz

It's looking for the non-gz'd versions of the files which don't exist in the tarball ipython-0.10.tar.gz which I downloaded today.

I do see there is a FIXME in setup.py saying something is disabled, but it appears to be referencing the generation of docs from a tex file.

I'm running this on a CentOS 5 install with python 2.6.2 installed along side the 'native' 2.4.3, attempting to get a source rpm so I can customize and distribute it.

@fperez
Owner

Comment posted on the original LP bug by Rodrigo Lopez

I am experiencing the same issue (Centos 5.1 x64, using Python 2.5.2 and
GCC 4.4.3), but bypassing this issue as follows:

   tar xzvf ipython-0.10.tar.gz
   cd ipython-0.10/
   gzip -d docs/man/*
   python2.5 setup.py bdist_rpm

The rpmbuild still fails though with the following error:

   Traceback (most recent call last):
     File "setup.py", line 35, in 
       from setupbase import (
   ImportError: No module named setupbase

Running "python2.5 setup.py install" works, but to get ipython running
without errors I still have to do the following first:

   mkdir -p /root/.ipython/
   touch /root/.ipython/ipythonrc
@tomspur

rpmbuild fails here , because of an undefined option:

+ python setup.py install --single-version-externally-managed -O1 --root=/home/tom/programming/repositories/github/ipython.git/build/bdist.linux-x86_64/rpm/BUILDROOT/ipython-0.11.alpha1.git-1.x86_64 --record=INSTALLED_FILES

BUILDING IPYTHON
python: 2.6.4 (r264:75706, Apr 1 2010, 02:55:51) [GCC
4.4.3 20100226 (Red Hat 4.4.3-8)]
platform: linux2

OPTIONAL DEPENDENCIES
Zope.Interface: yes
Twisted: 8.2.0
/usr/lib/python2.6/site-packages/foolscap/banana.py:2: DeprecationWarning: the sets module is deprecated
import struct, sets, time
Foolscap: 0.4.2
OpenSSL: 0.9
sphinx: 0.6.6
pygments: 1.3.1
nose: 0.11.1
pexpect: 2.3
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: option --single-version-externally-managed not recognized

It's Python 2.6.4 and according to:
http://mail.python.org/pipermail/distutils-sig/2006-July/006466.html

... this seems to be a distutils problem. When building a proper package for fedora it's just "python setup.py build" and "python setup.py install -O1 --skip-build --root %{buildroot}".

@fperez
Owner

We have no hope of overriding distutils bugs, closing on our end. Thanks tomspur for the info!

@minrk minrk referenced this issue from a commit in minrk/ipython
@Carreau Carreau fix writing both kind of figures
split figures into 2 kinds text and binary

fixes #107
26121e1
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.