Automatically installing Python dependencies using CMake -
I have been seen around in a quick way, but because of dependencies in different types and definitions like packages, It's quite difficult to pin down an answer.
I am creating a mixed-language source (Fortran, some ce and Python) and FORTRAN calls a Python script which depends on the network x Python package In PEPI generally, I have just installed the Network X , so there is no problem for me at the time of rebuilding.
However, for distribution, I want the best method:
pip or its equivalent, if it is not installed. virtualenv and create a virtual environment if appropriate. Network X by using the - user option with PP . Is there any standard way? Or should I just use the SIMKEY dependencies with custom commands that install pip etc.
itemprop = "text">
It depends on the "manual" install, you must be certain that all the necessary Tools are installed (to install), and if they do not, issue error. Then use the execute_process () to run pip and use whatever you want. On the other hand, if you are going to produce a real package for some special Linux , You can pack your binaries and need (via special syntax of package format such as * .rpm or * .b < / Code> Your package depends on on some other packages. Therefore, you can ensure that They will install your package w / (or even earlier). / P>
Comments
Post a Comment