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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
# Python modules
# setuptools is apparently distributed with python.org Python now. Does that mean it's
# standard? Who knows. I need it to build wheels on my machine, otherwise setup can get by just
# fine with distutils.
try:
import setuptools as distutools
except ImportError:
import distutils.core as distutools
# 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 :: 3",
"Topic :: Utilities"]
license = "http://creativecommons.org/licenses/BSD/"
keywords = "sysv ipc inter-process communication semaphore shared memory shm message queue"
prober.probe()
extension = distutools.Extension("sysv_ipc",
source_files,
# extra_compile_args=['-E'],
depends=["common.c",
"common.h",
"memory.c",
"memory.h",
"mq.c",
"mq.h",
"semaphore.c",
"semaphore.h",
"sysv_ipc_module.c",
"probe_results.h",
"setup.py",
],
)
distutools.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]
)
|