Hi pyRevit foaks, I am interested to understand what potential workflows can be used to ship python 3 libraries as dependecies for pyRevit extensions. In particular, I’d be interested in Numpy, SciPy and SpecklePy 2.0 (see docs here). Within our company, we have tried to wrap the libraries as pyRevit library extensions and add these as dependency to pyRevit extensions in the
extension.json file, but this only works for a limited selection. See related issue in other thread here.
Has anyone been able to succesfully do this? Or can think of a method that can work?
I can think of two potential alternatives:
- From the extension
startup.py: check if depencies are installed, if not, run a files download from desired PyPi project and unzip and run
- Add all dependent modules and files to the extension repo in the lib folder. However, this bloats repo and not sure how scripts will be able to differentiate between python 2 and 3 modules.
Any thoughts are welcome