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

On windows, with anaconda, is there a procedure to use pythran by calling side-loaded compiler (e.g. from winlibs). #2118

Open
hprodh opened this issue Jun 21, 2023 · 1 comment

Comments

@hprodh
Copy link

hprodh commented Jun 21, 2023

Hello, Pythran is a wonder !

I use pythran myself for sppeding up computation for scientifical interests, and I would like to share my scripts with a user. Th problem is that user has a Windows system, and is able to install anaconda, but installing Visual build tools requires administrative rights.
However, the site winlibs.org provides a bundle of pre-compiled clang compiler with LLVM and omp capabilities, that is therefore usable just by downloading the bundled binaries.
Now, let's say a user has anaconda installed with the pythran module, and the winlibs package downloaded... What will eventually be the procedure to manage to compile a .py file with pythran ?

@serge-sans-paille
Copy link
Owner

Hi @hprodh and thanks for the kind words. I don't have a lot of windows experience, so I can't tell for the details, but I do know where you should be looking at: https://pythran.readthedocs.io/en/latest/MANUAL.html#customizing-your-pythranrc
Setting CC= and CXX= to the binaries from winlibs should be a good start.

The default on windows is

[compiler]
defines=
undefs=
include_dirs=
libs=
library_dirs=
cflags=/std:c++14 /w
ldflags=
blas=pythran-openblas
CC=clang-cl.exe
CXX=clang-cl.exe
ignoreflags=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants