mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 06:10:34 +08:00
Version number in one place in the code.
Summary: This isn't the whole task, but it gets the version number into far fewer places. The doc / website are separate. Reviewed By: nikhilaravi Differential Revision: D20426113 fbshipit-source-id: 5810d1eca58b443fcd5f46991dc2f0f26adedbd8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2361845548
commit
4d3c886677
7
setup.py
7
setup.py
@@ -66,9 +66,14 @@ def get_extensions():
|
||||
return ext_modules
|
||||
|
||||
|
||||
__version__ = ""
|
||||
# Retrieve __version__ from the package.
|
||||
with open("pytorch3d/__init__.py", "r") as init:
|
||||
exec(init.read())
|
||||
|
||||
setup(
|
||||
name="pytorch3d",
|
||||
version="0.1.1",
|
||||
version=__version__,
|
||||
author="FAIR",
|
||||
url="https://github.com/facebookresearch/pytorch3d",
|
||||
description="PyTorch3d is FAIR's library of reusable components "
|
||||
|
||||
Reference in New Issue
Block a user