Skip to content

Commit 74c3ef4

Browse files
author
Wei Wei
committed
rename to --fx-only
1 parent 0d3b0d1 commit 74c3ef4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

py/setup.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
JETPACK_VERSION = None
2424

2525
__version__ = '1.2.0a0'
26-
FX2TRT_ONLY = False
26+
FX_ONLY = False
2727

2828
def get_git_revision_short_hash() -> str:
2929
return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).decode('ascii').strip()
3030

31-
if "--fx2trt-only" in sys.argv:
32-
FX2TRT_ONLY = True
33-
sys.argv.remove("--fx2trt-only")
31+
if "--fx-only" in sys.argv:
32+
FX_ONLY = True
33+
sys.argv.remove("--fx-only")
3434

3535
if "--release" not in sys.argv:
3636
__version__ = __version__ + "+" + get_git_revision_short_hash()
@@ -141,7 +141,7 @@ def finalize_options(self):
141141
develop.finalize_options(self)
142142

143143
def run(self):
144-
if FX2TRT_ONLY:
144+
if FX_ONLY:
145145
develop.run(self)
146146
else:
147147
global CXX11_ABI
@@ -161,7 +161,7 @@ def finalize_options(self):
161161
install.finalize_options(self)
162162

163163
def run(self):
164-
if FX2TRT_ONLY:
164+
if FX_ONLY:
165165
install.run(self)
166166
else:
167167
global CXX11_ABI
@@ -263,7 +263,7 @@ def run(self):
263263
] + (["-D_GLIBCXX_USE_CXX11_ABI=1"] if CXX11_ABI else ["-D_GLIBCXX_USE_CXX11_ABI=0"]),
264264
undef_macros=["NDEBUG"])
265265
]
266-
if FX2TRT_ONLY:
266+
if FX_ONLY:
267267
ext_modules=None
268268
packages=[
269269
"torch_tensorrt.fx",
@@ -308,8 +308,8 @@ def run(self):
308308
},
309309
zip_safe=False,
310310
license="BSD",
311-
packages=packages if FX2TRT_ONLY else find_packages(),
312-
package_dir=package_dir if FX2TRT_ONLY else {},
311+
packages=packages if FX_ONLY else find_packages(),
312+
package_dir=package_dir if FX_ONLY else {},
313313
classifiers=[
314314
"Development Status :: 5 - Stable", "Environment :: GPU :: NVIDIA CUDA",
315315
"License :: OSI Approved :: BSD License", "Intended Audience :: Developers",

0 commit comments

Comments
 (0)