mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-30 01:48:33 +02:00
switch from conda to nix for tooling
This commit is contained in:
+5
-16
@@ -23,22 +23,11 @@ if "OPENRAM_HOME" not in os.environ.keys():
|
||||
__path__.insert(0, OPENRAM_HOME)
|
||||
|
||||
|
||||
# Find the conda installer script
|
||||
if os.path.exists(OPENRAM_HOME + "/install_conda.sh"):
|
||||
CONDA_INSTALLER = OPENRAM_HOME + "/install_conda.sh"
|
||||
CONDA_HOME = OPENRAM_HOME + "/miniconda"
|
||||
elif os.path.exists(OPENRAM_HOME + "/../install_conda.sh"):
|
||||
CONDA_INSTALLER = OPENRAM_HOME + "/../install_conda.sh"
|
||||
CONDA_HOME = os.path.abspath(OPENRAM_HOME + "/../miniconda")
|
||||
# Override CONDA_HOME if it's set as an environment variable
|
||||
if "CONDA_HOME" in os.environ.keys():
|
||||
CONDA_HOME = os.environ["CONDA_HOME"]
|
||||
# Add CONDA_HOME to environment variables just in case
|
||||
try:
|
||||
os.environ["CONDA_HOME"] = CONDA_HOME
|
||||
except:
|
||||
from openram import debug
|
||||
debug.warning("Couldn't find conda setup directory.")
|
||||
# Nix toolchain root (flake location)
|
||||
NIX_HOME = os.path.abspath(OPENRAM_HOME + "/..")
|
||||
if "NIX_HOME" in os.environ.keys():
|
||||
NIX_HOME = os.environ["NIX_HOME"]
|
||||
os.environ["NIX_HOME"] = NIX_HOME
|
||||
|
||||
|
||||
# Import everything in globals.py
|
||||
|
||||
Reference in New Issue
Block a user