Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Disable installation of milvus-lite on windows platform #2137

Merged

Conversation

XuanYang-cn
Copy link
Contributor

Since the project is managed by setuptools, and according to the
setuptools,
we can disable the automatic installation of milvus-lite on windows
platform by adding environment markers.
Following PEP508, I pick the
environment marker "sys_platform != 'win32'" to prevent the
installation.
I build packages after the modification. Then test the .tar.gz and the
.whl files both on my windows laptop and a linux docker. The issue
mentioned in #2131 seems gone.
Due the lack of macOS machine, I could not perform testing on that
particular platform. Please check validity before merging.

enhance: Check PyMilvus on Windows platform

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: XuanYang-cn

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Since the project is managed by setuptools, and according to the
[setuptools](https://setuptools.pypa.io/en/latest/userguide/dependency_management.html),
we can disable the automatic installation of milvus-lite on windows
platform by adding environment markers.
Following [PEP508](https://peps.python.org/pep-0508/), I pick the
environment marker "sys_platform != 'win32'" to prevent the
installation.
I build packages after the modification. Then test the .tar.gz and the
.whl files both on my windows laptop and a linux docker. The issue
mentioned in milvus-io#2131 seems gone.
Due the lack of macOS machine, I could not perform testing on that
particular platform. Please check validity before merging.

enhance: Check PyMilvus on Windows platform

See also: milvus-io#2131, milvus-io#2134, milvus-io#2131

Co-Authored-by: rui zhang <[email protected]>
Signed-off-by: yangxuan <[email protected]>
@XuanYang-cn XuanYang-cn force-pushed the c/disable-milvus-lite-on-windows branch from c7b42ea to 6f84c2c Compare June 17, 2024 10:13
@mergify mergify bot added dco-passed and removed needs-dco labels Jun 17, 2024
Signed-off-by: yangxuan <[email protected]>
@longjiquan
Copy link
Contributor

/lgtm

@sre-ci-robot sre-ci-robot merged commit 23847a6 into milvus-io:2.4 Jun 17, 2024
11 checks passed
@XuanYang-cn XuanYang-cn deleted the c/disable-milvus-lite-on-windows branch June 20, 2024 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants