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

Is pythran usable on windows without admin provileges ? #2118

Open
hprodh opened this issue Jun 21, 2023 · 3 comments
Open

Is pythran usable on windows without admin provileges ? #2118

hprodh opened this issue Jun 21, 2023 · 3 comments

Comments

@hprodh
Copy link

hprodh commented Jun 21, 2023

Hello, Pythran is a wonder !

I use pythran myself for speeding up computation for scientifical interests, and I would like to share my scripts with a user. The 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=

@hprodh hprodh changed the title On windows, with anaconda, is there a procedure to use pythran by calling side-loaded compiler (e.g. from winlibs). Is pythran usable on windows without admin provileges ? Jan 24, 2025
@hprodh
Copy link
Author

hprodh commented Jan 24, 2025

I could not to find a solution for this issue, I also don't need myself to solve it anymore, yet it might remain an issue so I do not close it for now (but I renamed the issue for clarity).

@paugier
Copy link
Contributor

paugier commented Jan 26, 2025

It would be interesting to know if one can use Miniforge to install the clang conda package and use it for Pythran compilation. I'm not totally sure that we can use this package without installing Visual build tools.

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

3 participants