-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Could you release the sdist on pypi besides the wheels #19776
Comments
Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue. |
I think that's a good idea. With the revamped cmake build, the build system could potentially auto-discover available libraries for integration when building. The relevant work would be to add the logic for triggering cmake build into the setup.py. |
@KaixuYang would you like to help improve the setup.py to make this possible. I'm happy to advise on any questions |
@leezu I have no background in this but I would like to give it a try if that’s something I could learn in a short time. Is there a guide or example? |
@KaixuYang you can take a look at scikit-build https://scikit-build.readthedocs.io/en/latest/usage.html or "raw" pyproject.toml file: https://setuptools.readthedocs.io/en/latest/build_meta.html Edit: I see sci-kit build still doesn't support PEP 517, PEP 518 scikit-build/scikit-build#124 though it should be possible to still use it |
@leezu Is the goal to first install |
cmake will find native dependencies, such as openblas and will error out if they can't be found. So you don't need to worry about them. Installation of sdist will only be supported if user has all native build dependencies installad. You can refer to https://mxnet.apache.org/versions/master/get_started/build_from_source.html for list of recommended dependencies You use |
@leezu I'm not sure if I did it in the correct way, but I keep getting this error calling
|
@leezu Where are the |
You need to setup the scikit-build to create these files with cmake |
@leezu The build fails if cmake is not installed, is there a way to check this? (The brew install cmake, not the pip install cmake). Also how to turn off CUDA? The build checks for CUDA but it is not available. |
@leezu This also happens with |
@KaixuYang you can refer to https://github.com/apache/incubator-mxnet/blob/master/config/linux_gpu.cmake / https://github.com/apache/incubator-mxnet/blob/master/config/linux.cmake config files for a list of configuration options (including how to turn off cuda). For your initial development, I think you can hardcode this configuration option. Later you can try to auto-detect it. |
@leezu Yeah I see these files. I'm wondering where does cmake learn which config (darwin.cmake, linux.cmake, linux_gpu.cmake) to use? |
For example, when I don't have cuda on my machine, it should use the version without CUDA. |
These configs only take effect if you copy them to the main folder (next to CMakeLists.txt) under the name They are just for convenience. If the config is not present, the default values will be used You can manually pass option to cmake via |
So at this time you can either detect if cuda is present inside the |
Yeah this makes sense, thanks! |
Ok, thank you! For purpose of development, you can just set |
It will be fixed by #19610 For now you can delete this code or add an extra condition to ensure you take the |
Hello,
For the python version, would it be possible to release the sdist files on
pypi
besides the wheel files? Thanks!The text was updated successfully, but these errors were encountered: