Comments (8)
I think a better course of action would be to prepare a wiki page with the instructions and just link to that.
from scikit-build.
On Windows, you could also use chocolatey, or implement something like chocolatey to just do it for someone. All of the necessary compilers are packaged there. Not sure how far you want to go to hold someone's hand, though.
from scikit-build.
That's a good idea. We could just spit out some powershell commands for them to install via chocolatey...
from scikit-build.
Et voila.
In addition of complete documentation already available here: http://scikit-build.readthedocs.io/en/latest/generators.html
Following integration of #226 , the following message will also be displayed:
Linux messages
- Distribution name and Install command known:
********************************************************************************
scikit-build could not get a working generator for your system. Aborting build.
Building Linux wheels for Python 2.7 requires a compiler (e.g gcc).
It can be installed using Ubuntu package manager:
sudo apt-get install build-essential
To build compliant wheels, consider using the manylinux system described in PEP-513.
Get it with "dockcross/manylinux-x64" docker image:
https://github.com/dockcross/dockcross#readme
For more details, please refer to scikit-build documentation:
http://scikit-build.readthedocs.io/en/latest/generators.html#linux
********************************************************************************
- Distribution Name known and Install command unknown:
********************************************************************************
scikit-build could not get a working generator for your system. Aborting build.
Building Linux wheels for Python 2.7 requires a compiler (e.g gcc).
But scikit-build does *NOT* know how to install it on Ubuntu
To build compliant wheels, consider using the manylinux system described in PEP-513.
Get it with "dockcross/manylinux-x64" docker image:
https://github.com/dockcross/dockcross#readme
For more details, please refer to scikit-build documentation:
http://scikit-build.readthedocs.io/en/latest/generators.html#linux
********************************************************************************
- Distribution Name unknown and Install command unknown:
********************************************************************************
scikit-build could not get a working generator for your system. Aborting build.
Building Linux wheels for Python 2.7 requires a compiler (e.g gcc).
To build compliant wheels, consider using the manylinux system described in PEP-513.
Get it with "dockcross/manylinux-x64" docker image:
https://github.com/dockcross/dockcross#readme
For more details, please refer to scikit-build documentation:
http://scikit-build.readthedocs.io/en/latest/generators.html#linux
********************************************************************************
Windows messages
- Python 2.7 to 3.2:
********************************************************************************
scikit-build could not get a working generator for your system. Aborting build.
Building windows wheels for Python 2.7 requires Microsoft Visual Studio 2008.
Get it with "Microsoft Visual C++ Compiler for Python 2.7":
http://aka.ms/vcpython27
********************************************************************************
- Python 3.3 to 3.4:
********************************************************************************
scikit-build could not get a working generator for your system. Aborting build.
Building windows wheels for Python 3.4 requires Microsoft Visual Studio 2010.
Get it with "Windows SDK for Windows 7 and .NET 4.0":
https://www.microsoft.com/download/details.aspx?id=8279
********************************************************************************
- Python 3.5 and above:
********************************************************************************
scikit-build could not get a working generator for your system. Aborting build.
Building windows wheels for Python 3.5 requires Microsoft Visual Studio 2015.
Get it with "Microsoft Visual C++ Build Tools":
http://landinghub.visualstudio.com/visual-cpp-build-tools
Or with "Visual Studio 2015":
https://visualstudio.com/
********************************************************************************
MacOSX message
********************************************************************************
scikit-build could not get a working generator for your system. Aborting build.
Building MacOSX wheels for Python 2.7 requires XCode.
Get it here:
https://developer.apple.com/xcode/
********************************************************************************
from scikit-build.
Closing. Fixed by d592c80
As a side note, I couldn't find packages equivalent to the one documented on https://chocolatey.org/packages
from scikit-build.
Look like this package:
- https://chocolatey.org/packages/microsoft-build-tools:
buildtools_full.exe
is equivalent to
- Visual C++ Build Tools 2015:
visualcppbuildtools_full.exe
Having a closer look, there seems different (at least comparing the SHA256):
./visualcppbuildtools_full.exe 1e1774869abd953d05d10372b7c08bfa0c76116f5c6df1f3d031418ccdcd8f7b
./buildtools_full.exe 243eace2d62a208048f562c7f6ffed1912dbfd254d7f9ee00c7d760b36b42416
from scikit-build.
This is excellent. Briefly explains the issue, how to resolve it, and a link for further information and next steps. 💯
from scikit-build.
What @thewtex said. The messages strike a good balance between helping users and staying out of the way of power users. Very nice! 👍
from scikit-build.
Related Issues (20)
- Use scikit-build exclusively via cmake?
- 0.17.6: Duplicate module named "hello"
- setuptools "clean" command does not respect the deployement target
- (question) Cross-compilation support status quo HOT 2
- CMP0148 with CMake version >= 3.27
- Editable pip install is not working, but a regular pip install and `python setup.py develop` work fine HOT 1
- Use DEPFILE instead of implementing a custom parser? HOT 2
- Failing to write version file with setuptools_scm 8 HOT 3
- debug build with pip? HOT 2
- Accept --cmake-executable also through an environment variable
- `distutils` removed in Python3.12 HOT 2
- Can't use skbuild-based package from another package that uses a "throwaway" build venv
- Sufficiently new cmake should be preferred over cmake3 HOT 1
- Release build deletes docstrings HOT 1
- 0.17.3: Python.h: No such file or directory HOT 1
- Add NetBSD support
- Support `editable_wheel` with `setuptools>=64` HOT 1
- Changelog at PyPI returns 404
- Python3.11 + Cython-0.29.35 FindCython.cmake:71 issue HOT 2
- scikit-build - No module named 'skbuild' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scikit-build.