sandialabs / pyapprox

Flexible and efficient tools for high-dimensional approximation, scientific machine learning and uncertainty quantification.
https://sandialabs.github.io/pyapprox/
MIT License
51 stars 13 forks source link

Fix dev install #2

Closed ConnectedSystems closed 3 years ago

ConnectedSystems commented 3 years ago

Encountered several issues when setting up the dev environment.

First, pip install -e . appears to ignore the packages listed in setup_requires and install_requires

I separated out the install_requires packages into a requirements.txt file and used python setup.py develop instead of pip

Note that NumPy > v1.19.3 has an issue on Windows platforms so the specified version has been adjusted where relevant

ConnectedSystems commented 3 years ago

Still errors because of the following dependencies:

Both of which require cmake which I installed via conda install -c conda-forge cmake

A straight pip install of these packages fail on both Windows and Linux.

Reason for installing ROL is that I encounter `NameError: name 'ROL' is not defined.

Looking at the code, it looks like ROL was originally meant as an optional install but is now a required package.

I guess the next step is to try building these from source, unless you (@jdjakem) have some experience with this?

ConnectedSystems commented 3 years ago

@jdjakem

Got things up and running to an acceptable degree on Windows. Doc generation currently fails because it hits non-optional packages that aren't available on Windows (error says dolfin, probably some others too).

Please review when able, but ignore if the GitHub actions fails to build the docs properly.