| 1 | # Readme |
| 2 | |
| 3 | This is a script for generating a self installer for cadquery using conda constructor |
| 4 | |
| 5 | * https://github.com/conda/constructor |
| 6 | |
| 7 | The installer |
| 8 | |
| 9 | * Installs an instance of miniconda |
| 10 | * Adds cadquery / conda-forge to the default channels |
| 11 | * Runs a post install script to download install cadquery. |
| 12 | |
| 13 | We need to install cadquery post install due to the file sizes involved with the install of opencascade (around 2Gb) |
| 14 | This installer will not add the installed directory to the Path or try to override the default python (with the default options selected). |
| 15 | |
| 16 | ## Running the constructor |
| 17 | |
| 18 | To run |
| 19 | ``` |
| 20 | conda install jinja2 constructor |
| 21 | python build.py <installer version> <github tag version> |
| 22 | ``` |
| 23 | |
| 24 | For Example |
| 25 | ``` |
| 26 | build.py 2.2 master |
| 27 | ``` |
| 28 | |
| 29 | ## Activation |
| 30 | |
| 31 | To Activate the environment |
| 32 | ``` |
| 33 | # Under Windows |
| 34 | condabin\activate.bat |
| 35 | |
| 36 | # Under Linux / MacOS |
| 37 | source ~/cadquery/bin/activate |
| 38 | ``` |
| 39 |