This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
54 lines (43 loc) · 1.63 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
54
# Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
#
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.
import subprocess
import setuptools
from codecs import open
from os import path
class BinaryDistribution(setuptools.Distribution):
"""Distribution which always forces a binary package with platform name"""
def has_ext_modules(self):
return True
subprocess.call(['make', '-C', 'remote_op'])
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
requirements = None
with open('requirements.txt') as f:
requirements = f.read().splitlines()
setuptools.setup(
name='graphpipe_tf',
version='1.0.4',
description='Graphpipe helpers for TensorFlow remote ops',
long_description=long_description,
long_description_content_type="text/markdown",
author='OCI ML Team',
install_requires=requirements,
author_email='[email protected]',
url='https://oracle.github.io/graphpipe',
classifier=[
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Operating System :: POSIX :: Linux',
'License :: OSI Approved :: Universal Permissive License (UPL)',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
packages=['graphpipe_tf'],
package_data={'graphpipe_tf': ['remote_op.so']},
distclass=BinaryDistribution,
)