diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2014-09-12 14:16:22 +0000 |
---|---|---|
committer | <> | 2014-10-24 11:04:40 +0000 |
commit | a77e3a63f004e6ee789fa05e4a5bbc333b1529f1 (patch) | |
tree | efe8a68996c19b7b0765ebc689937721d1d99cf7 /setup.py | |
download | sysv-ipc-tarball-master.tar.gz |
Imported from /home/lorry/working-area/delta_python-packages_sysv-ipc-tarball/sysv_ipc-0.6.8.tar.gz.HEADsysv_ipc-0.6.8master
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..f1dfc2f --- /dev/null +++ b/setup.py @@ -0,0 +1,62 @@ +# Python modules +import distutils.core as duc + +# sysv_ipc installation helper module +import prober + +VERSION = open("VERSION", "r").read().strip() + +name = "sysv_ipc" +description = "System V IPC primitives (semaphores, shared memory and message queues) for Python" +long_description = open("README", "r").read() +author = "Philip Semanchuk" +author_email = "philip@semanchuk.com" +maintainer = "Philip Semanchuk" +url = "http://semanchuk.com/philip/sysv_ipc/" +download_url = "http://semanchuk.com/philip/sysv_ipc/sysv_ipc-%s.tar.gz" % VERSION +source_files = ["sysv_ipc_module.c", "common.c", "semaphore.c", "memory.c", + "mq.c" ] +# http://pypi.python.org/pypi?:action=list_classifiers +classifiers = [ "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: MacOS :: MacOS X", + "Operating System :: POSIX :: BSD :: FreeBSD", + "Operating System :: POSIX :: Linux", + "Operating System :: POSIX :: SunOS/Solaris", + "Operating System :: POSIX", + "Operating System :: Unix", + "Programming Language :: Python", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 3", + "Topic :: Utilities" ] +license = "http://creativecommons.org/licenses/BSD/" +keywords = "ipc inter-process communication semaphore shared memory shm message queue" + +prober.probe() + +extension = duc.Extension("sysv_ipc", + source_files, +# extra_compile_args=['-E'] + depends = [ "common.c", "common.h", "memory.c", + "memory.h", "mq.c", "mq.h", + "probe_results.h", "semaphore.c", + "semaphore.h", "sysv_ipc_module.c", + ], + ) + +duc.setup(name = name, + version = VERSION, + description = description, + long_description = long_description, + author = author, + author_email = author_email, + maintainer = maintainer, + url = url, + download_url = download_url, + classifiers = classifiers, + license = license, + keywords = keywords, + ext_modules = [ extension ] + ) + |