Skip to content

Commit

Permalink
Use PARI_SHARE env variable to support cross compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf authored May 29, 2021
1 parent d1fd6ca commit ede26be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autogen/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def pari_share():
>>> os.path.isfile(os.path.join(pari_share(), "pari.desc"))
True
"""
if "PARI_SHARE" in os.environ:
return os.environ["PARI_SHARE"]
from subprocess import Popen, PIPE
if not gppath:
raise EnvironmentError("cannot find an installation of PARI/GP: make sure that the 'gp' program is in your $PATH")
Expand Down

0 comments on commit ede26be

Please sign in to comment.