- push dummy setup utility for permissions scan 16/116/1
authorEric Z <ezavesky@research.att.com>
Tue, 28 Nov 2017 23:23:41 +0000 (17:23 -0600)
committerEric Z <ezavesky@research.att.com>
Tue, 28 Nov 2017 23:24:14 +0000 (17:24 -0600)
Change-Id: Iaf38d04f09dae0b0e6d1060e2b2aead89c5d3c56
Signed-off-by: Eric Z <ezavesky@research.att.com>
INSTALL.txt [new file with mode: 0644]
setup.py [new file with mode: 0644]

diff --git a/INSTALL.txt b/INSTALL.txt
new file mode 100644 (file)
index 0000000..6953f1c
--- /dev/null
@@ -0,0 +1,7 @@
+*****************************************************************************
+    WARNING: Local installation of this package is not supported. This
+             package consolidates only the required package dependencies. 
+
+    Please utilize the `acumos` client library to deploy this library.
+    Use the 'requirements.txt' file to check for install dependencies.
+*****************************************************************************
diff --git a/setup.py b/setup.py
new file mode 100644 (file)
index 0000000..647f7b0
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,45 @@
+# -*- coding: utf-8 -*-
+import os
+from setuptools import setup   # , find_packages
+from setuptools.command.install import install
+
+# warning (if run in verbose mode) about installing this object
+class new_install(install):
+    def run(self):
+        with open(os.path.join(setup_dir,"INSTALL.txt")) as f:
+            print(f.read())
+        install.run(self)
+
+
+# extract __version__ from version file. importing will lead to install failures
+setup_dir = os.path.dirname(__file__)
+with open(os.path.join(setup_dir, 'face_privacy_filter', '_version.py')) as file:
+    globals_dict = dict()
+    exec(file.read(), globals_dict)
+    __version__ = globals_dict['__version__']
+
+
+# read requirements list from supplementary file in this repo
+requirement_list = [ line for line in open(os.path.join(setup_dir,'requirements.txt')) if line and line[0] != '#' ]
+
+
+setup(
+    name=globals_dict['MODEL_NAME'],
+    version=__version__,
+    packages=[],
+    author="Eric Zavesky",
+    author_email="ezavesky@research.att.com",
+    description=("Face detection and privacy filtering models"),
+    long_description=("Face detection and privacy filtering models"),
+    license="Apache",
+    # package_data={globals_dict['MODEL_NAME']: ['data/*']},
+    # setup_requires=['pytest-runner'],
+    entry_points="""
+    [console_scripts]
+    """,
+    # setup_requires=['pytest-runner'],
+    install_requires=requirement_list,
+    tests_require=[],
+    cmdclass={'install': new_install},
+    include_package_data=True,
+)