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

Change to environment.yml #19

Closed
mithro opened this issue Jun 11, 2020 · 4 comments · Fixed by #24
Closed

Change to environment.yml #19

mithro opened this issue Jun 11, 2020 · 4 comments · Fixed by #24

Comments

@mithro
Copy link
Contributor

mithro commented Jun 11, 2020

Current

INSTALL_DIR="/opt/symbiflow/xc7"
bash conda_installer.sh -b -p $INSTALL_DIR/conda && rm conda_installer.sh
source "$INSTALL_DIR/conda/etc/profile.d/conda.sh"
conda update -y -q conda

wget -qO- https://storage.googleapis.com/symbiflow-arch-defs/artifacts/prod/foss-fpga-tools/symbiflow-arch-defs/continuous/install/4/20200416-002215/symbiflow-arch-defs-install-a321d9d9.tar.xz | tar -xJ -C $INSTALL_DIR
conda install -y -c symbiflow yosys yosys-plugins vtr-no-gui
conda install -y make lxml simplejson intervaltree git pip
conda activate
pip install python-constraint
pip install git+https://github.com/symbiflow/fasm
conda deactivate

New version

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O conda_installer.sh
bash conda_installer.sh -b -p $INSTALL_DIR/conda

source "$INSTALL_DIR/conda/etc/profile.d/conda.sh"
conda env update --name xc7 --file xc7.yml
conda activate xc7
environment.yml
name: xc7
channels:
- SymbiFlow
- defaults
dependencies:
- symbiflow
- yosys
- yosys-plugins
- vtr-no-gui
# Packages installed from PyPI
- pip:
  - -r file:requirements.txt
requirements.txt
python-constraint
-e git+https://github.com/symbiflow/fasm
@mithro
Copy link
Contributor Author

mithro commented Jun 11, 2020

FYI -- @pgielda @kgugala

@mithro
Copy link
Contributor Author

mithro commented Jun 11, 2020

https://github.com/SymbiFlow/conda-env-make/blob/master/conda.mk is useful for understanding the steps.

GitHub
Repository containing common Makefiles for setting up conda environments. - SymbiFlow/conda-env-make

@pgielda
Copy link
Member

pgielda commented Jun 11, 2020

Thanks. I am going to test this locally and report back.

@mithro
Copy link
Contributor Author

mithro commented Jun 11, 2020

The steps are generally;

  1. Install conda
  2. Create environment from environment.yml + requirements.txt file
  3. Enter created environment

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

Successfully merging a pull request may close this issue.

2 participants