Closed tpimh closed 3 years ago
You can use SKBUILD_CONFIGURE_OPTIONS environment variables to pass down options to cmake. I'm not familiar enough with scikit-build to know if there are other ways to do this.
e.g.
SKBUILD_CONFIGURE_OPTIONS="-DCMakePythonDistributions_ARCHIVE_DOWNLOAD_DIR:PATH=/my/known/path" pip wheel -v cmake-3.21.1.tar.gz
however, up-to 3.21.1, CMakePythonDistributions_ARCHIVE_DOWNLOAD_DIR
is not used for libuv
. This will be fixed by #173
Thank you very much for your reply! Yesterday, I have built it successfully with this small modification: sed -i '216i DOWNLOAD_DIR ${CMakePythonDistributions_ARCHIVE_DOWNLOAD_DIR}' CMakeLists.txt
using this command python3 setup.py bdist_wheel -- -DBUILD_CMAKE_FROM_SOURCE:BOOL=ON -DCMakePythonDistributions_ARCHIVE_DOWNLOAD_DIR:PATH=/my/known/path
. I will try to build with pip with your suggested command as well.
cmake 3.21.1.post1 is now available on PyPI with the fix for libuv respecting CMakePythonDistributions_ARCHIVE_DOWNLOAD_DIR
I need to build Python wheel using pip on a machine with no network connectivity. I have downloaded the source archives and using
pip3 install cmake
.The
libuv-v1.23.0.tar.gz
andcmake-3.21.1.tar.gz
are at a known path, but I need to tell the setup where to find them. I tried adding--install-option="-- -DCMakePythonDistributions_ARCHIVE_DOWNLOAD_DIR:PATH=/my/known/path"
, but it didn't seem to do anything. Is there an option to supply CMake variables to setup like this? If there is, I couldn't find any relevant documentation.Here is the error log in case it contains valuable information: