-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (47 loc) · 1.58 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
52
53
from setuptools import setup, find_packages
import subprocess
install_deps = [
"torch",
"torchvision",
"pillow",
"numpy<2.0",
"matplotlib",
"setuptools",
"scikit-image",
"scikit-learn",
]
gpu_available=False
try:
subprocess.check_output('nvidia-smi')
install_deps.append('faiss-gpu')
except Exception: # this command not being found can raise quite a few different errors depending on the configuration
install_deps.append('faiss-cpu')
with open("README.md", "r") as fh:
long_description = fh.read()
__version__ = None
exec(open("pyflim/_version.py").read())
setup(
name='pyflim',
version='0.1',
packages=find_packages(),
install_requires=install_deps,
author='Leonardo de Melo João',
author_email='[email protected]',
description='This is a python implementation of the Feature Learning by Image Markers.',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/LIDS-UNICAMP/flim-python',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 2 - Pre-Alpha",
"Environment :: GPU :: NVIDIA CUDA",
"Intended Audience :: Education :: Developers",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: \
Artificial Intelligence :: Image Recognition",
"Topic :: Software Development :: Libraries",
],
python_requires='>=3.10',
)