Skip to content

Commit 475289f

Browse files
sdks/python: properly make milvus as extra dependency
1 parent 6896ceb commit 475289f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

sdks/python/setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ def cythonize(*args, **kwargs):
160160
'pandas>=1.4.3,!=1.5.0,!=1.5.1,<2.3',
161161
]
162162

163+
milvus_dependency = ['pymilvus>=2.5.10,<3.0.0']
164+
163165

164166
def find_by_ext(root_dir, ext):
165167
for root, _, files in os.walk(root_dir):
@@ -444,9 +446,8 @@ def get_portability_package_data():
444446
'mysql-connector-python>=9.3.0',
445447
'python-tds>=1.16.1',
446448
'sqlalchemy-pytds>=1.0.2',
447-
'oracledb>=3.1.1',
448-
'milvus'
449-
],
449+
'oracledb>=3.1.1'
450+
] + milvus_dependency,
450451
'gcp': [
451452
'cachetools>=3.1.0,<7',
452453
'google-api-core>=2.0.0,<3',
@@ -589,7 +590,7 @@ def get_portability_package_data():
589590
],
590591
'xgboost': ['xgboost>=1.6.0,<2.1.3', 'datatable==1.0.0'],
591592
'tensorflow-hub': ['tensorflow-hub>=0.14.0,<0.16.0'],
592-
'milvus': ['pymilvus>=2.5.10,<3.0.0']
593+
'milvus': milvus_dependency
593594
},
594595
zip_safe=False,
595596
# PyPI package information.

0 commit comments

Comments
 (0)