Skip to content

[python-package] make it possible to build wheels without internet connection (fixes #5979)#6042

Merged
jameslamb merged 3 commits intomasterfrom
python/no-internet
Aug 21, 2023
Merged

[python-package] make it possible to build wheels without internet connection (fixes #5979)#6042
jameslamb merged 3 commits intomasterfrom
python/no-internet

Conversation

@jameslamb
Copy link
Collaborator

@jameslamb jameslamb commented Aug 15, 2023

Fixes #5979.

Makes it possible to build wheels with build-python.sh in environments without internet access.

That's relevant to repackaging like the creation of FreeBSD ports described in #5979.

How I tested this

On my Mac laptop...

... installed build dependencies

pip install \
    build \
    scikit-build-core \
    wheel

... turned off wifi and build a wheel

sh ./build-python.sh \
    --no-isolation \
    bdist_wheel

@jameslamb jameslamb merged commit 5fe84f8 into master Aug 21, 2023
@jameslamb jameslamb deleted the python/no-internet branch August 21, 2023 01:24
@github-actions
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python bindings fail to build without internet connection

2 participants