- push dummy setup utility for permissions scan
[face-privacy-filter.git] / setup.py
1 # -*- coding: utf-8 -*-
2 import os
3 from setuptools import setup   # , find_packages
4 from setuptools.command.install import install
5
6 # warning (if run in verbose mode) about installing this object
7 class new_install(install):
8     def run(self):
9         with open(os.path.join(setup_dir,"INSTALL.txt")) as f:
10             print(f.read())
11         install.run(self)
12
13
14 # extract __version__ from version file. importing will lead to install failures
15 setup_dir = os.path.dirname(__file__)
16 with open(os.path.join(setup_dir, 'face_privacy_filter', '_version.py')) as file:
17     globals_dict = dict()
18     exec(file.read(), globals_dict)
19     __version__ = globals_dict['__version__']
20
21
22 # read requirements list from supplementary file in this repo
23 requirement_list = [ line for line in open(os.path.join(setup_dir,'requirements.txt')) if line and line[0] != '#' ]
24
25
26 setup(
27     name=globals_dict['MODEL_NAME'],
28     version=__version__,
29     packages=[],
30     author="Eric Zavesky",
31     author_email="ezavesky@research.att.com",
32     description=("Face detection and privacy filtering models"),
33     long_description=("Face detection and privacy filtering models"),
34     license="Apache",
35     # package_data={globals_dict['MODEL_NAME']: ['data/*']},
36     # setup_requires=['pytest-runner'],
37     entry_points="""
38     [console_scripts]
39     """,
40     # setup_requires=['pytest-runner'],
41     install_requires=requirement_list,
42     tests_require=[],
43     cmdclass={'install': new_install},
44     include_package_data=True,
45 )