Skip to content

Commit

Permalink
PYTORCH_BUILD_VERSION to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
soumith committed Jan 18, 2017
1 parent 205b9bc commit 57a2ccf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ def make_relative_rpath(path):
extensions.append(THCUNN)

version="0.1"
if os.getenv('PYTORCH_BINARY_VERSION'):
version = os.getenv('PYTORCH_BINARY_VERSION') \
+ '_' + os.getenv('PYTORCH_BINARY_NUMBER')
if os.getenv('PYTORCH_BUILD_VERSION'):
version = os.getenv('PYTORCH_BUILD_VERSION') \
+ '_' + os.getenv('PYTORCH_BUILD_NUMBER')

setup(name="torch", version=version,
ext_modules=extensions,
Expand Down

0 comments on commit 57a2ccf

Please sign in to comment.