This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

Commit 4af6eae1 authored by Pierre Augier's avatar Pierre Augier
Browse files

FLUIDPYTHRAN_DIR

parent 7cc6437cc692
...@@ -15,6 +15,7 @@ FluidPythran: easily speedup your Python code with Pythran ...@@ -15,6 +15,7 @@ FluidPythran: easily speedup your Python code with Pythran
:target: https://codecov.io/bb/fluiddyn/fluidpythran/branch/default/ :target: https://codecov.io/bb/fluiddyn/fluidpythran/branch/default/
:alt: Code coverage :alt: Code coverage
**Documentation**: https://fluidpythran.readthedocs.io
.. warning :: .. warning ::
...@@ -109,6 +110,9 @@ Installation ...@@ -109,6 +110,9 @@ Installation
pip install fluidpythran pip install fluidpythran
The environment variable :code:`FLUIDPYTHRAN_DIR` can be set to control where
the cached files are saved.
A short tour of FluidPythran syntaxes A short tour of FluidPythran syntaxes
------------------------------------- -------------------------------------
...@@ -319,7 +323,7 @@ setup.py like this: ...@@ -319,7 +323,7 @@ setup.py like this:
here = Path(__file__).parent.absolute() here = Path(__file__).parent.absolute()
paths = ["fluidsim/base/time_stepping/pseudo_spect.py"] paths = ["fluidsim/base/time_stepping/pseudo_spect.py"]
make_pythran_files([here / path for path in paths]) make_pythran_files([here / path for path in paths], mocked_modules=["h5py"])
Note that the function :code:`make_pythran_files` does not use Pythran. Note that the function :code:`make_pythran_files` does not use Pythran.
Compiling the associated Pythran file can be done if wanted (see for example Compiling the associated Pythran file can be done if wanted (see for example
......
...@@ -58,7 +58,10 @@ except ImportError: ...@@ -58,7 +58,10 @@ except ImportError:
from .pythranizer import ext_suffix, name_ext_from_path_pythran, make_hex from .pythranizer import ext_suffix, name_ext_from_path_pythran, make_hex
path_root = Path.home() / ".fluidpythran"
path_root = Path(
os.environ.get("FLUIDPYTHRAN_DIR", Path.home() / ".fluidpythran")
)
def get_module_name(frame): def get_module_name(frame):
......
[metadata] [metadata]
name = fluidpythran name = fluidpythran
description = Pythran annotations in Python files description = Easily speedup your Python code with Pythran
long_description = file: README.rst long_description = file: README.rst
keywords = pythran keywords = pythran
license = CeCILL-B License license = CeCILL-B License
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment