I am currently having difficulty with a setup.py script. The problem was
originally brought to my attention by someone packaging the project for
Fedora 11, but I can reproduce a similar problem on my Jaunty box.

When "python setup.py build" is run, the following output is produced
(running with -n switch):
running install
running build
running build_py
running build_ext
running build_scripts
changing mode of build/scripts-2.6/suvat
running install_lib
running install_scripts
changing mode of /usr/local/bin/suvat
running install_data
error: can't copy 'd': doesn't exist or not a regular file

This is for me; the Fedora issue is with 's' instead of 'd'. This is
with different versions of setup.py. My development version is attached,
and the Fedora one is available in the tarball at
http://joshh.co.uk/stuff/suvat-0.1.1.tar.gz.

-- 
Josh Holland <[email protected]> (key F6067C12)
http://joshh.co.uk dutchie on irc.freenode.net
http://twitter.com/jshholland http://identi.ca/jshholland
'< KnMn> I am sick of people saying "loling"; surely it should be "lingol"'
#!/usr/bin/env python
from distutils.core import setup, Extension
from distutils.command.build import build as _build
import os

class build(_build):
    def run(self):
        _build.run(self)
        os.system("desktop-file-install data/suvat.desktop")


setup(cmdclass={'build': build},
      name = 'suvat',
      version = '0.2',
      description = 'A simple GUI to solve equations of motion under '
              'constant acceleration',
      long_description = 'suvat uses the equations of motion with '
              'constant acceleration to find the values of displacement, '
              'initial velocity, final velocity, acceleration and time, '
              'given three of them',
      author = 'Josh Holland',
      author_email = '[email protected]',
      packages = ['suvatlib'],
      scripts = ['suvat'],
      ext_modules = [Extension('suvatext', sources = ['suvatlib/suvatext.c'])],
      requires = ['pygtk (>= 2.0)', 'gtk'],
      license = 'GPL-3',
      data_files = [('/usr/share/man/man1', 'doc/suvat.1.gz')],
      url = 'https://launchpad.net/suvat')

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to