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 = "[email protected]",
    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
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to