1 # ===============LICENSE_START=======================================================
3 # ===================================================================================
4 # Copyright (C) 2017-2018 AT&T Intellectual Property & Tech Mahindra. All rights reserved.
5 # ===================================================================================
6 # This Acumos software file is distributed by AT&T and Tech Mahindra
7 # under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # This file is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ===============LICENSE_END=========================================================
18 # -*- coding: utf-8 -*-
20 from setuptools import setup # , find_packages
21 from setuptools.command.install import install
23 # warning (if run in verbose mode) about installing this object
24 class new_install(install):
26 with open(os.path.join(setup_dir,"INSTALL.txt")) as f:
31 # extract __version__ from version file. importing will lead to install failures
32 setup_dir = os.path.dirname(__file__)
33 with open(os.path.join(setup_dir, 'face_privacy_filter', '_version.py')) as file:
35 exec(file.read(), globals_dict)
36 __version__ = globals_dict['__version__']
39 # read requirements list from supplementary file in this repo
40 requirement_list = [ line for line in open(os.path.join(setup_dir,'requirements.txt')) if line and line[0] != '#' ]
44 name=globals_dict['MODEL_NAME'],
47 author="Eric Zavesky",
48 author_email="ezavesky@research.att.com",
49 description=("Face detection and privacy filtering models"),
50 long_description=("Face detection and privacy filtering models"),
52 # package_data={globals_dict['MODEL_NAME']: ['data/*']},
53 # setup_requires=['pytest-runner'],
57 # setup_requires=['pytest-runner'],
58 install_requires=requirement_list,
60 cmdclass={'install': new_install},
61 include_package_data=True,