I'm using miniconda3 on Arch Linux which defaults to python 3.8 but
when I installed cadquery using `conda env create -n cq-dev -f environment.yml`
on master it installed python 3.7. So I had to modify environment.yml to get python 3.8:
wink@3900x:~/prgs/CadQuery/forks/cadquery (master)
$ git diff environment.yml
diff --git a/environment.yml b/environment.yml
index 2cb5548..44f28b9 100644
--- a/environment.yml
+++ b/environment.yml
@@ -4,8 +4,8 @@ channels:
- conda-forge
- defaults
dependencies:
- - python>=3.6
- - ipython=6.5.0
+ - python>=3.8
+ - ipython
- ocp
- pyparsing
- sphinx=2.4
I then tested "box.py" using a python 3.8 feature where
you can easily print values using this syntax: f"{result=}"
(cq-dev2) wink@3900x:~/prgs/CadQuery/projects/box
$ cat box.py
import cadquery as cq
result = cq.Workplane("front").box(2.0, 2.0, 0.5)
print(f"{result=}")
(cq-dev2) wink@3900x:~/prgs/CadQuery/projects/box
$ python box.py
result=<cadquery.cq.Workplane object at 0x7f45285826a0>