added try except for compatibility conda freecad #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for reviewing and merging the last couple of PRs.
This one is another small minimal PR that would allow GEOUNED to work with the conda freecad package.
Conda freecad package provides compiled FreeCAD.so files, compiled to be compatible with the conda python.
The means we can make use of geouned with our system python 🎉 instead of the
FreeCAD.cmd
command and also we can avoid manually appending paths to the sys 🎉.The conda freecad package is distributed under the name
freecad
lower case and once imported it would add the path to the appropriately compile FreeCAD.so and then one can import FreeCAD and it know where to find the .so file.If the
try:
fails then it will pass the except and therefore this has no impact on the other ways of running the package.I've tested the installation of GEOUNED package with conda freecad on windows, mac and ubuntu with python versions 3.8 and 3.11 and converted all 52 step files found in the testing folder. The CI for this testing is here if that is of interest.
Supporting the conda package for freecad also has the potential to reduce the installation to a single command which is something I can add in the future if this PR goes ahead
Many thanks for considering this PR
Tagging @aljaz-kolsek for your interest