Skip to content

Commit 1a6bc17

Browse files
authored
Update setup.py
Support tf-models-no-deps for mac.
1 parent c1cea4e commit 1a6bc17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

official/pip_package/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
tf_version = '2.11.0' # Major version.
2525

2626
project_name = 'tf-models-official'
27+
# Use project_name = 'tf-models-no-deps' for Mac release.
2728

2829
long_description = """The TensorFlow official models are a collection of
2930
models that use TensorFlow's high-level APIs.
@@ -61,7 +62,7 @@ def _get_requirements():
6162
version += '.dev' + datetime.datetime.now().strftime('%Y%m%d')
6263
install_requires.append('tf-nightly')
6364
install_requires.append('tensorflow-text-nightly')
64-
else:
65+
elif project_name == 'tf-models-official':
6566
install_requires.append(f'tensorflow~={tf_version}')
6667
install_requires.append(f'tensorflow-text~={tf_version}')
6768

0 commit comments

Comments
 (0)