-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (46 loc) · 1.49 KB
/
setup.py
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
from setuptools import setup
import os
import re
import codecs
# Create new package with python setup.py sdist
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
with codecs.open(os.path.join(here, *parts), 'r') as fp:
return fp.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='cinderella',
version=find_version("Auto2DSelect", "__init__.py"),
python_requires='>3.4.0',
packages=['Auto2DSelect'],
url='https://github.com/MPI-Dortmund/sphire_classes_autoselect',
license='MIT',
author='Thorsten Wagner',
extras_require = {
'gpu': ['tensorflow-gpu == 1.10.1'],
'cpu': ['tensorflow == 1.10.1']
},
install_requires=[
"Keras == 2.2.5",
"numpy == 1.14.5",
"h5py >= 2.5.0, < 3.0.0",
"scipy >= 1.3.0",
"pillow",
"tqdm",
"mrcfile"
],
author_email='thorsten.wagner@mpi-dortmund.mpg.de',
description='Select 2d classes automatically',
entry_points={
'console_scripts': [
'sp_cinderella_train.py = Auto2DSelect.train:_main_',
'sp_cinderella_predict.py = Auto2DSelect.predict:_main_',
'sp_cinderella_extract.py = Auto2DSelect.extract:_main_',
]},
)