cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

OCCT7.6

Open adam-urbanczyk opened this issue 2 years ago • 1 comments

By popular request - CQ with OCCT 7.6

adam-urbanczyk avatar Sep 16 '22 20:09 adam-urbanczyk

Codecov Report

Merging #1156 (35c2047) into master (3d6d2ab) will increase coverage by 0.02%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1156      +/-   ##
==========================================
+ Coverage   93.99%   94.01%   +0.02%     
==========================================
  Files          26       26              
  Lines        5408     5411       +3     
  Branches      993      995       +2     
==========================================
+ Hits         5083     5087       +4     
  Misses        193      193              
+ Partials      132      131       -1     
Impacted Files Coverage Δ
cadquery/cq.py 92.20% <ø> (ø)
cadquery/occ_impl/jupyter_tools.py 100.00% <ø> (ø)
cadquery/occ_impl/shapes.py 92.65% <100.00%> (+0.09%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov[bot] avatar Sep 20 '22 07:09 codecov[bot]

The OCP releases on conda-forge went from 7.6.2-alpha to 7.6.3-alpha, with no releases in-between. Is 7.6.2 going to have a production release, or will it always be pre-release? Is 7.6.3 really alpha quality, or is the "alpha" just denoting that it's a first release?

https://anaconda.org/CadQuery/ocp/files

@lorenzncode

After the new cadquery-ocp is uploaded, pip installs will start to break since there is no version pin currently. Adding a version pin should improve the situation in the future.

I can start updating the ocp-build-system repo to 7.6.3 now to try to get it ready to publish to PyPi. It's always going to be hard to prevent builds from breaking during a small window of time though.

jmwright avatar Sep 26 '22 11:09 jmwright

The OCP releases on conda-forge went from 7.6.2-alpha to 7.6.3-alpha, with no releases in-between. Is 7.6.2 going to have a production release, or will it always be pre-release? Is 7.6.3 really alpha quality, or is the "alpha" just denoting that it's a first release?

https://anaconda.org/CadQuery/ocp/files

@lorenzncode

After the new cadquery-ocp is uploaded, pip installs will start to break since there is no version pin currently. Adding a version pin should improve the situation in the future.

I can start updating the ocp-build-system repo to 7.6.3 now to try to get it ready to publish to PyPi. It's always going to be hard to prevent builds from breaking during a small window of time though.

Unless you need it for something, I propose to forget about 7.6.2. I'll update setup.py to reflect the reality better.

adam-urbanczyk avatar Sep 26 '22 19:09 adam-urbanczyk

So what do you think @jmwright ?

adam-urbanczyk avatar Sep 28 '22 16:09 adam-urbanczyk

So what do you think @jmwright ?

The PR itself is fine, but we have run into a GLIBC version problem when building the Python wheels. The wheel builds use conda for the environment, but wheels don't bundle the system libraries like conda seems to.

https://github.com/CadQuery/ocp-build-system/issues/1

jmwright avatar Sep 28 '22 17:09 jmwright

Do you want to block this PR on that issue? OCP was compiled with gcc 8 AFAICT, I do not compile other libraries myself.

adam-urbanczyk avatar Sep 28 '22 18:09 adam-urbanczyk

Do you want to block this PR on that issue?

Not really, but we should at least take the version pin back out of setup.py since it will point to a non-existent package version until we figure out how to fix the wheel builds.

jmwright avatar Sep 28 '22 19:09 jmwright

Do you want to block this PR on that issue?

Not really, but we should at least take the version pin back out of setup.py since it will point to a non-existent package version until we figure out how to fix the wheel builds.

7.6 and 7.5 are not compatible. If you point to 7.5 in setup.py , you'll get errors when importing/running. IMO it is better to fail at install than at runtime.

adam-urbanczyk avatar Sep 28 '22 19:09 adam-urbanczyk

I might suggest adding a 7.5.3 pin to setup.py right before committing these changes (which would update the pin). That way, we can always point pip users to a commit that works, regardless of what wheels have been built.

fpq473 avatar Sep 28 '22 20:09 fpq473

Please see #1161 for a fix to the version pin.

fpq473 avatar Sep 29 '22 19:09 fpq473

After #1161 master is green, merging.

adam-urbanczyk avatar Oct 01 '22 07:10 adam-urbanczyk