Skip to content

2022.12.17

Compare
Choose a tag to compare
@vespakoen vespakoen released this 17 Dec 14:54
· 36 commits to master since this release

December 2022 release of OpenCAMLib.

!! BREAKING CHANGE !!

The way to import the Python module changed!
Change your imports from:

# old
import ocl

to

# new
from opencamlib import ocl

Alternatively, to support old and new versions of OpenCAMLib:

try:
    from opencamlib import ocl
except ImportError:
    try:
        import ocl
    except ImportError:
        pass
    pass

We had to change this because we publish pre-compiled Python wheels now, and the ocl name was already taken.

The most notable changes are:

  • We now provide pre-compiled Python wheels and native Node.js modules for the most common platforms.
  • We added a OpenCAMLibConfig.cmake file, making it easier to find and link to OpenCAMLib when your project uses CMake.
  • Dropped Python 2 support.
  • Added pyproject.toml / setup.py scripts, and scikit-build-core, to allow a more simple pip install . when compiling from source.
  • The CMake configuration got a lot of attention and got simplified, which hopefully will make it easier for packagers to configure.
  • A lot of the examples got fixed and some very old ones got removed.
  • An install.sh script got added to aid in compiling OpenCAMLib from source.
  • Removed / updated use of deprecated functions, fixed most compiler warnings
  • Fixed a bug in the Waterline operation's destructor, which caused it to segfault in some situations.

For a diff of all the changes, see (warning, large!):

https://github.com/aewallin/opencamlib/compare/2019.07..2022.12.17