Skip to content

Commit

Permalink
fix installation of cadquery-massembly
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhard-42 committed Jul 8, 2022
1 parent 2ad7840 commit 9e338b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ _Jupyter-CadQuery_ is now a 3 layer project:
- Added tree collapsing/expanding buttons
- Extend help for new features

- **Dependencies**
- Removed [CadQuery-MAssembly](https://github.com/bernhard-42/cadquery-massembly) from dependencies to decouple versions. Needs to be separately installed now.

### Fixes:

- Change radio button behaviour to standard behaviour
Expand Down Expand Up @@ -144,18 +147,23 @@ _Jupyter-CadQuery_ is now a 3 layer project:
1. For using _Jupyter-CadQuery_ **in Jupyterlab**

- If you don't have it already, create a new conda environment with the latest CadQuery (e.g. master)

```bash
conda create -n jcq3 -c conda-forge -c cadquery python=3.8 cadquery=master
conda create -n jcq3 -c conda-forge -c cadquery python=3.9 cadquery=master
conda activate jcq3
```

- Install _Jupyter-CadQuery_ (note, matplotlib is only used for the examples)

```bash
pip install jupyter-cadquery==3.1.0 matplotlib
pip install jupyter-cadquery==3.1.0 cadquery-massembly==1.0.0rc0 matplotlib
```

Windows users should also install `pywin32` again with `conda` to ensure it is configured correctly
```bash
conda install pywin32
```

- Start _Jupyter-CadQuery_

```bash
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN mamba install -n cq -y -c conda-forge -c cadquery cadquery=master && \
find / -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete

RUN . "/opt/conda/etc/profile.d/conda.sh" && conda activate cq && \
pip install jupyter-cadquery==3.1.0 cadquery-massembly~=0.9 jupyterlab~=3.3 voila~=0.3 && \
pip install jupyter-cadquery==3.1.0 cadquery-massembly~=1.0.0rc0 jupyterlab~=3.4.3 voila~=0.3.5 && \
find / -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete

VOLUME /home/cq/
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dependencies:
- matplotlib=3.3
- pip:
- jupyter-cadquery==3.1.0
- cadquery-massembly==1.0.0rc0

0 comments on commit 9e338b9

Please sign in to comment.