CAD bundle installer #87
Replies: 7 comments
-
For the installer to make sense, you would need to store the |
Beta Was this translation helpful? Give feedback.
-
That’s fine, I’ll set Visual Studio to copy the output into that folder |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
That’s correct, however the clones support auto-loading via the registry. I refrained from doing this because of the baggage associated with this, may require elevated privileges, uninstall mechanism to remove the entries In theory, there could be a reg script, something like
might be a can of worms because we don't know if the target app is installed |
Beta Was this translation helpful? Give feedback.
-
Higher permissions will not be required for the |
Beta Was this translation helpful? Give feedback.
-
There’s none for the clones, AutoCAD has some here I’ve never done autoloading for Zw or GStar. OpenDCL installs for everything under the sun. I was considering taking inspiration from Owen’s code BricsCAD has side by side support loading for different locales, so it gets more complex. I don’t know how this is handled with ZwCAD |
Beta Was this translation helpful? Give feedback.
-
I think the best solution would be to change the approach to installation.
The project can be hosted on PyPI so that it can be installed using
pip install
.After installing the package, we would have access to modules written in Python, the installation could be global or in a virtual environment.
The
Bin
folder would be downloaded together with the python modules, and after executing the command, e.g.python -m pyrx bundle install
, theBin
directory would be copied to%localappdata%/...
(i.e. it would do the same thing as the.msi
installer does now ). A similar approach is used in thexlwings
project, where usingxlwings addin install
the excel addin is installed.We would further use what we obtained in #1, if Cad was launched from the virtual environment, it would have access to the
pyrx
library (pure python) from the virtual environment, and if not, the packages found on the basis ofPyRx.ini
would be used.In the module loaded with
PYLOAD
we would then have:ActiveX modules can also be moved:
I think eventually stubs should also be included in the pyrx library, we need to refer to PEP 561
Originally posted by @gswifort in #67 (reply in thread)
Beta Was this translation helpful? Give feedback.
All reactions