[Distutils] binary executable in package
Wolfgang Kerzendorf
wkerzendorf at googlemail.com
Thu Mar 19 01:52:33 CET 2009
Hello,
I'm am distributing a package with binary executables which are compiled on
installation. Everything works so far, except that when the binary
executables are copied to the destination that they loose the executable
flag. Here's the code:
--------
#!/usr/bin/env python
from distutils.core import setup
from imp import find_module
from os import system, path
import os
#This is a list of files to install, and where
#(relative to the 'root' dir, where setup.py is)
#You could be more specific.
#find_module('pyraf')
find_module('ephem')
find_module('numpy')
find_module('scipy')
#find_module('SOAPpy')
def makeAll():
curdir=os.getcwd()
srcDir=os.path.join(os.path.dirname(os.path.abspath(__file__)),
'src/pywcs/extutil/src')
os.chdir(srcDir)
os.system('make clean')
os.system('make')
os.chdir(curdir)
makeAll()
setup(name = "pywcs",
version = "0.91",
description = "Collection of tools to use wcs information and fit new
wcs to images",
author = "Wolfgang Kerzendorf",
author_email = "wkerzendorf at gmail.com",
url = "http://www.mso.anu.edu.au/~wkerzend/",
#Name the folder where your packages live:
#(If you have other packages (dirs) or modules (py files) then
#put them into the package directory - they will be found
#recursively.)
packages = ['pywcs'],
#'package' package must contain files (see list above)
#I called the package 'package' thus cleverly confusing the whole
issue...
#This dict maps the package name =to=> directories
#It says, package *needs* these files.
package_dir={'':'src'},
package_data = {'pywcs' :
["conf.d/sex.d/*","extutil/src/*","extutil/starmatch_new","extutil/finalmatch"]
},
#'runner' is in the root.
scripts = ["addwcs"]
#long_description = """Really long text here."""
#
#This next part it for the Cheese Shop, look a little down the page.
#classifiers = []
)
------
Thanks for any help
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090319/a1ecbc65/attachment.htm>
More information about the Distutils-SIG
mailing list