Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #441 (defect)

Opened 4 years ago

Last modified 3 years ago

setup.py build_rpm fails

Status: closed (fixed)

Reported by: anonymous Assigned to: lawouach
Priority: normal Milestone: 3.0
Component: CherryPy code Keywords: rpm setup install
Cc:

While setup.py bdist works, bdist_rpm fails because it's not finding tutorial.conf.

This is on a CentOS 4.2 box, CherryPy 2.1.1.

running install_data error: can't copy 'cherrypy/tutorial/tutorial.conf': doesn't exist or not a regular file error: Bad exit status from /var/tmp/rpm-tmp.90215 (%install)

While it's possible to create RPMs in other ways, this is the simplest.

Change History

09/27/06 03:21:14: Modified by lawouach

Right. I had a look at this one and it seems it does work fine with CP3.

Well it works, sort of. There is a bug in bdist_rpm which prevents it from working with files having a space in their name which is the case for test/static/has space.html

If you remove the space from the filename and update setup.py accordingly then the command runs fine.

There is an open bug on the Python tracker regarding this issue but it seems no one cares enough to close it as it has been opened in 2003.

http://sourceforge.net/tracker/index.php?func=detail&aid=809163&group_id=5470&atid=105470

We have two options:

1. We close this ticket by saying it's not our problem but then people won't be able to create a rpm package (maning some major distributions might not be able to package CP3) 2. We change has space.html into hasspace.html and we modify the test accordingly.

I Think 2. would be better.

09/27/06 14:02:01: Modified by fumanchu

The whole point of that test is to test serving files with spaces in the filename, so 2 isn't an option. I propose 3) change the test to create the file as needed (and probably destroy it after the test).

10/13/06 13:15:30: Modified by lawouach

  • owner changed from rdelon to lawouach.
  • milestone set to 3.0.

12/11/06 04:09:43: Modified by lawouach

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [1514] and [1515]

The command python setup.py build bdist_rpm does now correctly generates RPMs on my system.

Hosted by WebFaction

Log in as guest/cpguest to create tickets