Skip to content

Commit

Permalink
test editable too
Browse files Browse the repository at this point in the history
  • Loading branch information
gbarter committed Jan 17, 2024
1 parent 2c46c2c commit 3fa93cd
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/CI_pyFrame3DD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ jobs:
- name: Test run
run: |
'${{ steps.cp.outputs.python-path }}' -m pytest test
- name: Editable Pip Install pyFrame3DD
env:
CC: '${{ steps.install_cc.outputs.cc }}'
CXX: '${{ steps.install_cc.outputs.cxx }}'
run: |
'${{ steps.cp.outputs.python-path }}' -m pip uninstall pyframe3dd
'${{ steps.cp.outputs.python-path }}' -m pip install -e --no-build-isolation .
- name: Editable Test run
run: |
'${{ steps.cp.outputs.python-path }}' -m pytest test
build_conda:
Expand Down Expand Up @@ -93,13 +105,11 @@ jobs:
run: |
conda install -y compilers
# Install
- name: Debug
run: |
conda list
printenv
# Install
- name: Conda Install pyFrame3DD
env:
MESON_ARGS: ""
Expand All @@ -109,4 +119,15 @@ jobs:
- name: Test run
run: |
python -m pytest test
- name: Editable Conda Install pyFrame3DD
env:
MESON_ARGS: ""
run: |
python -m pip uninstall pyframe3dd
python -m pip install -e --no-build-isolation . -v
- name: Editable Test run
run: |
python -m pytest test
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,25 @@ There is example code that shows usage contained in ``examples/exB.py``. This f

pyFrame3DD requires a C compiler

## Install
## Install (as a library)

For detailed installation instructions of WISDEM modules see <https://github.com/WISDEM/WISDEM> or to install pyFrame3DD by itself do:

$ pip install WISDEM-pyFrame3DD


## Install (from source)

If you would like to build the project locally from source for easier access to the underlying methods and tests, do:

$ git clone https://github.com/WISDEM/pyFrame3DD.git
$ cd pyFrame3DD
$ pip install .

If developer/editable mode, do the same `git clone` step, but on install do:

$ pip install -e --no-build-isolation .

## Unit Tests

$ pytest test
Expand Down
1 change: 1 addition & 0 deletions pyframe3dd/pyframe3dd.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
lib_opt = [os.path.join(pyframe3dd_dir, libname), # pip installs (regular and editable)
os.path.join(os.path.dirname( os.path.dirname( pyframe3dd_dir )), "local", "lib", libname), # WEIS library
os.path.join(os.path.dirname( sysconfig.get_path('stdlib') ), libname), # conda installs
os.path.join(os.path.dirname( sysconfig.get_path('stdlib') ), "pyframe3dd", libname), # conda installs
os.path.join(os.path.dirname( sysconfig.get_path('stdlib') ), "lib", libname), # conda installs
os.path.join(os.path.dirname( sysconfig.get_path('stdlib') ), "Library", "lib", libname), # conda installs
os.path.join( sysconfig.get_path('platlib'), "pyframe3dd", libname), # system-wide pip installs
Expand Down

0 comments on commit 3fa93cd

Please sign in to comment.