1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
from distutils.core import setup
from distutils.extension import Extension
# We do not require Cython currently
#from Cython.Distutils import build_ext
import os
def getDir( dirname ):
return [ dirname+'/'+x for x in os.listdir( dirname ) ]
# Get the list of all the packages
packages = [ x[0] for x in os.walk( "framework" ) ]
setup(
name = "The FreeSmartphone Framework Daemon",
version = "0.9.5.9",
author = "Michael 'Mickey' Lauer et. al.",
author_email = "mlauer@vanille-media.de",
url = "http://www.freesmartphone.org",
#ext_modules = [
# Extension("framework.subsystems.odeviced.wireless", ["framework/subsystems/odeviced/wireless.pyx"], libraries = [])
# ],
#cmdclass = {'build_ext': build_ext},
packages = packages,
package_data={'framework/subsystems/opimd': ["db/*.sql"]},
scripts = [ "framework/frameworkd", "tools/cli-framework", "tools/dump-netlink", "tools/remove-tel", "tools/opimd_fix_db", "tools/opimd_convert_db" ],
data_files = [
("/etc/dbus-1/system.d", ["etc/dbus-1/system.d/frameworkd.conf"] ),
("/etc/init.d", ["etc/init.d/frameworkd"] ),
("/etc/freesmartphone/opreferences/schema/", ["etc/freesmartphone/opreferences/schema/phone.yaml"]),
("/etc/freesmartphone/opreferences/schema/", ["etc/freesmartphone/opreferences/schema/profiles.yaml"]),
("/etc/freesmartphone/opreferences/schema/", ["etc/freesmartphone/opreferences/schema/rules.yaml"]),
("/etc/freesmartphone/opreferences/conf/profiles/", ["etc/freesmartphone/opreferences/conf/profiles/default.yaml"]),
("/etc/freesmartphone/opreferences/conf/phone", ["etc/freesmartphone/opreferences/conf/phone/default.yaml"]),
("/etc/freesmartphone/opreferences/conf/phone", ["etc/freesmartphone/opreferences/conf/phone/silent.yaml"]),
("/etc/freesmartphone/opreferences/conf/phone", ["etc/freesmartphone/opreferences/conf/phone/vibrate.yaml"]),
("/etc/freesmartphone/opreferences/conf/phone", ["etc/freesmartphone/opreferences/conf/phone/ring.yaml"]),
("/etc/freesmartphone/opreferences/conf/rules", ["etc/freesmartphone/opreferences/conf/rules/default.yaml"]),
("/etc/freesmartphone/opreferences/conf/rules", ["etc/freesmartphone/opreferences/conf/rules/silent.yaml"]),
("/etc/freesmartphone/opreferences/conf/rules", ["etc/freesmartphone/opreferences/conf/rules/vibrate.yaml"]),
("/etc/freesmartphone/opreferences/conf/rules", ["etc/freesmartphone/opreferences/conf/rules/ring.yaml"]),
("/etc/freesmartphone/oevents", ["etc/freesmartphone/oevents/rules.yaml"]),
("/etc/freesmartphone/persist", ["etc/freesmartphone/persist/README"]),
("freesmartphone/examples/", getDir( "examples" ) ),
]
)
|