-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Virtualenv support? #26
Comments
You should be able to install everything into a virtualenv with the right arguments to cmake. |
For development, you can also just set
|
I tried setting those two environment variables and re-compiling but they didn't change the installation path. $ sudo ldconfig
$ cd ..
$ rm -fr build
$ mkdir build
$ cd build
$ export LD_LIBRARY_PATH=/home/mark/.nasa_sar/lib
$ export PYTHONPATH=/home/mark/.nasa_sar/lib/python3.11/site-packages
$ CC=gcc \
CXX=g++ \
GDAL_ROOT=/usr/local/bin \
cmake \
-DCMAKE_INSTALL_PREFIX=../install \
../
$ make -j$(nproc) VERBOSE=ON
$ make install
I then just set those two environment variables to where the files were installed but I'm still not able to import them. $ export LD_LIBRARY_PATH=/mnt/d/code_gis/isce3/install/lib
$ export PYTHONPATH=/mnt/d/code_gis/isce3/install/packages
$ ipython from isce3.core import dateTime, timeDelta, statevector, orbit, ellipsoid, lut2d
I tried deactivating the venv and seeing if I could import anything. $ deactivate
$ cd /mnt/d/code_gis/isce3/install
$ export LD_LIBRARY_PATH=/home/mark/.nasa_sar/lib
$ export PYTHONPATH=/home/mark/.nasa_sar/lib/python3.11/site-packages
$ python3 from isce3.core import dateTime, timeDelta, statevector, orbit, ellipsoid, lut2d
$ cd /mnt/d/code_gis/isce3/install/packages
$ python3 from isce3.core import dateTime, timeDelta, statevector, orbit, ellipsoid, lut2d
I tried compiling with the venv as a target but I'm still fighting a pyre issue. $ cd /mnt/d/code_gis/isce3/build
$ source ~/.nasa_sar/bin/activate
$ sudo apt install libgtest-dev
$ pip install pyre-check
$ cmake ../ \
-DPython_EXECUTABLE=/home/mark/.nasa_sar/bin/python3 \
-DISCE3_FETCH_DEPS=OFF \
-DISCE3_FETCH_PYRE=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/home/mark/.nasa_sar/,/home/mark/.nasa_sar/bin \
-DCMAKE_INSTALL_LIBDIR=lib \
-DISCE_PACKAGESDIR=/home/mark/.nasa_sar/lib/python3.11/site-packages \
-DGTEST_BUILD_TESTS=OFF
Is there some sort of pre-build wheel that statically compiled everything and could be installed via pip on its own? |
There is a whole bunch of funny (not recommended things) going here.
Maybe the best thing for you to consider is to work with conda and there is a pre-built package for it. I would also recommend this if your intention is to just use the package as is and you don't plan to actually modify the code. I don't think there are pip wheels for isce3 yet since this package is rapidly changing and most the dev is happening on a private git - this is just a public copy of the repo that is updated with tested changes once in a while. |
Are there any plans to make this package installable into a virtual environment?
$ cd /mnt/d/code_gis/isce3/build/packages $ pip install isce3/
I tried setting a few paths manually but I ended up with circular import errors.
The text was updated successfully, but these errors were encountered: