forked from DigitalSlideArchive/HistomicsTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
84 lines (69 loc) · 2.34 KB
/
Copy pathsetup.py
File metadata and controls
84 lines (69 loc) · 2.34 KB
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
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import json
import os
import sys
try:
from setuptools import find_packages, Extension
except ImportError:
from distutils.core import setup, find_packages
from distutils.extension import Extension
try:
from skbuild import setup
except ImportError:
print('scikit-build is required to build from source.', file=sys.stderr)
print('Please run:', file=sys.stderr)
print('', file=sys.stderr)
print(' python -m pip install scikit-build')
sys.exit(1)
# import numpy
# from Cython.Build import cythonize
from pkg_resources import parse_requirements, RequirementParseError
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
with open('plugin.json') as f:
pkginfo = json.load(f)
with open('LICENSE') as f:
license_str = f.read()
try:
with open('requirements.txt') as f:
ireqs = parse_requirements(f.read())
except RequirementParseError:
raise
requirements = [str(req) for req in ireqs]
test_requirements = [
# TODO: Should we list Girder here?
]
# ext_compiler_args = ["-std=c++11", "-O2"]
# if sys.platform == "darwin": # osx
# ext_compiler_args.append("-mmacosx-version-min=10.9")
setup(name='histomicstk',
version=pkginfo['version'],
description=pkginfo['description'],
long_description=readme + '\n\n' + history,
author='Kitware, Inc.',
author_email='developers@digitalslidearchive.net',
url='https://github.com/DigitalSlideArchive/HistomicsTK',
packages=find_packages(exclude=['doc']),
package_dir={'histomicstk':
'histomicstk'},
include_package_data=True,
install_requires=requirements,
license=license_str,
zip_safe=False,
keywords='histomicstk',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Console',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Software Development :: Libraries :: Python Modules',
],
test_suite='plugin_tests',
tests_require=test_requirements,
)