Skip to content

Commit ddf740d

Browse files
committed
added linux installer
1 parent 4b68d17 commit ddf740d

File tree

4 files changed

+33
-5
lines changed

4 files changed

+33
-5
lines changed

conda/web-installer/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# ignore files generated from templates
22
construct.yaml
33
post-install.bat
4+
post-install.sh
45
build/
6+

conda/web-installer/Readme.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,26 @@ The installer
1313
We need to install cadquery post install due to the file sizes involved with the install of opencascade (around 2Gb)
1414
This installer will not add the installed directory to the Path or try to override the default python (with the default options selected).
1515

16+
## Running the constructor
17+
1618
To run
1719
```
1820
conda install jinja2 constructor
19-
build.py <installer version> <github tag version>
21+
python build.py <installer version> <github tag version>
2022
```
2123

2224
For Example
2325
```
2426
build.py 2.2 master
2527
```
28+
29+
## Activation
30+
31+
To Activate the environment
32+
```
33+
# Under Windows
34+
condabin\activate.bat
35+
# Under Linux
36+
source ~/cadquery/bin/activate
37+
```
38+

conda/web-installer/build.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ def generate_templates(installer_version, tag_version):
3939
output = template.render(tag_version=tag_version)
4040
write_file('post-install.bat', output)
4141

42-
# TODO
43-
#template = env.get_template("post-install.sh.jinja2")
44-
#output = template.render(tag_version=tag_version)
45-
#write_file('post-install.sh', output)
42+
template = env.get_template("post-install.sh.jinja2")
43+
output = template.render(tag_version=tag_version)
44+
write_file('post-install.sh', output)
4645

4746

4847
def run_constructor():
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
echo Entering Conda Environment
4+
source $PREFIX/bin/activate
5+
6+
echo Installing CadQuery
7+
conda install -y cadquery={{ tag_version }}
8+
9+
echo Cleaning Packages
10+
conda clean -a -y
11+
12+
echo To activate run
13+
echo source ~/cadquery/bin/activate
14+

0 commit comments

Comments
 (0)