[Fedora-packaging] packaging python applications

Michael Schwendt mschwendt at gmail.com
Thu May 3 19:39:18 UTC 2012


On Thu, 3 May 2012 12:34:51 -0700 (PDT), KA (Kamal) wrote:

> I am trying to package a python application in rpm
> 
> Source1: http://pypi.python.org/packages/source/Z/ZSI/ZSI-2.0-rc3.tar.gz
> 
> 
> %build
> 
> {__python} setup.py build
> 
> But i get an error:
> 
> /usr/bin/python: can't open file 'ZSI-2.0-rc3/setup.py': [Errno 2] No such file or directory
>

Try again with a proper %setup in %prep? Clearly there is a setup.py file
in the top-level directory of the extracted tarball, so I think you've
got your %setup usage wrong.

-- 
Fedora release 17 (Beefy Miracle) - Linux 3.3.4-1.fc17.x86_64
loadavg: 0.00 0.01 0.05


More information about the packaging mailing list