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 73 74 75 76 77 78 79 80 81 82 83 84
|
import io
import os
from setuptools import setup, Extension
import sys
# pip workaround
os.chdir(os.path.abspath(os.path.dirname(__file__)))
# This won't build on non-Linux -- don't even try
if not sys.platform.startswith('linux'):
sys.stderr.write("reprozip uses ptrace and thus only works on Linux\n"
"You can however install reprounzip and plugins on other "
"platforms\n")
sys.exit(1)
# List the source files
sources = ['pytracer.c', 'tracer.c', 'syscalls.c', 'database.c',
'ptrace_utils.c', 'utils.c', 'pylog.c']
# They can be found under native/
sources = [os.path.join('native', n) for n in sources]
# Setup the libraries
libraries = ['sqlite3', 'rt']
# Build the C module
pytracer = Extension('reprozip._pytracer',
sources=sources,
libraries=libraries)
# Need to specify encoding for PY3, which has the worst unicode handling ever
with io.open('README.rst', encoding='utf-8') as fp:
description = fp.read()
req = [
'PyYAML',
'rpaths>=0.8',
'usagestats>=0.3',
'requests',
'distro']
setup(name='reprozip',
version='1.3',
ext_modules=[pytracer],
packages=['reprozip', 'reprozip.tracer'],
entry_points={
'console_scripts': [
'reprozip = reprozip.main:main'],
'reprozip.filters': [
'python = reprozip.filters:python',
'builtin = reprozip.filters:builtin',
'ruby = reprozip.filters:ruby']},
install_requires=req,
description="Linux tool enabling reproducible experiments (packer)",
author="Remi Rampin, Fernando Chirigati, Dennis Shasha, Juliana Freire",
author_email='reprozip@nyu.edu',
maintainer="Remi Rampin",
maintainer_email='remi@rampin.org',
url='https://www.reprozip.org/',
project_urls={
'Documentation': 'https://docs.reprozip.org/',
'Examples': 'https://examples.reprozip.org/',
'Source': 'https://github.com/VIDA-NYU/reprozip',
'Bug Tracker': 'https://github.com/VIDA-NYU/reprozip/issues',
'Chat': 'https://riot.im/app/#/room/#reprozip:matrix.org',
'Changelog':
'https://github.com/VIDA-NYU/reprozip/blob/1.x/CHANGELOG.md',
},
long_description=description,
license='BSD-3-Clause',
keywords=['reprozip', 'reprounzip', 'reproducibility', 'provenance',
'vida', 'nyu'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Operating System :: POSIX :: Linux',
'Programming Language :: C',
'Topic :: Scientific/Engineering',
'Topic :: System :: Archiving'])
|