Skip to content

Commit

Permalink
setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jermainewang committed Nov 29, 2019
1 parent 08c7e3c commit 3a8891c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@ pipeline {
}
}
}

}
}
3 changes: 1 addition & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def build_extension(self, ext):
with open("MANIFEST.in", "w") as fo:
for path in LIBS:
shutil.copy(path, os.path.join(CURRENT_DIR, 'tfdlpack'))
print('>>>>>>>>>>>>>', path)
_, libname = os.path.split(path)
fo.write("include tfdlpack/%s\n" % libname)
setup_kwargs = {
Expand All @@ -108,7 +107,7 @@ def build_extension(self, ext):
author_email='allen.zhou@nyu.edu',
description='Tensorflow plugin for DLPack',
packages=find_packages(),
install_requires=['tensorflow>=2.0.0'],
install_requires=['tensorflow%s>=2.0.0' % os.getenv('TFDLPACK_PACKAGE_SUFFIX')],
long_description="""
The package adds interoperability of DLPack to Tensorflow. It contains straightforward
and easy-to-use APIs to convert Tensorflow tensors from/to DLPack format.
Expand Down
1 change: 1 addition & 0 deletions tests/scripts/task_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ make -j4
popd

export TFDLPACK_LIBRARY_PATH=$PWD/build
export TFDLPACK_PACKAGE_SUFFIX=-gpu

pushd python
python3 setup.py clean
Expand Down

0 comments on commit 3a8891c

Please sign in to comment.