Skip to content
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

pip install compatible for python modules #239

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CSXCAD
18 changes: 0 additions & 18 deletions doc-src/install/requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ version of vtk, such as libvtk7-dev. VTK7 is the lowest version supported.

sudo apt-get install octave liboctave-dev

- To use Python scripting (recommended):

.. code-block:: console

sudo apt-get install python3-numpy python3-matplotlib cython3 python3-h5py

- To use Paraview to visualize simulation results (recommended):

.. code-block:: console
Expand Down Expand Up @@ -70,12 +64,6 @@ Fedora

sudo dnf install octave

- To use Python scripting (recommended):

.. code-block:: console

sudo dnf install python3-Cython python3-h5py python3-matplotlib

- To use Paraview to visualize simulation results (recommended):

.. code-block:: console
Expand Down Expand Up @@ -137,12 +125,6 @@ these instructions only if a manual install is needed during development.

brew install octave

- To use Python scripting (recommended):

.. code-block:: console

pip3 install cython numpy h5py matplotlib --user

- To use Paraview to visualize simulation results (recommended):

.. code-block:: console
Expand Down
2 changes: 1 addition & 1 deletion openEMS
11 changes: 6 additions & 5 deletions update_openEMS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ done

basedir=$(pwd)
INSTALL_PATH=${1%/}
export OPENEMS_INSTALL_PATH=$INSTALL_PATH
LOG_FILE=$basedir/build_$(date +%Y%m%d_%H%M%S).log

echo "setting install path to: $INSTALL_PATH"
Expand Down Expand Up @@ -123,7 +124,7 @@ fi
echo "build openEMS and dependencies ... please wait"
make -j5 >> $LOG_FILE 2>&1
if [ $? -ne 0 ]; then
echo "make failed, build incomplete, please see logfile for more details..."
echo "make failed, build incomplete, please see logfile $LOG_FILE for more details..."
cd $basedir
echo "build incomplete, cleaning up tmp dir ..."
rm -rf $tmpdir
Expand Down Expand Up @@ -155,12 +156,12 @@ if [ $BUILD_PY_EXT -eq 1 ]; then
fi
for PY_EXT in 'CSXCAD' 'openEMS'
do
echo "build $PY_EXT python module ... please wait"
echo "Building $PY_EXT python module, please wait..."
cd $PY_EXT/python
python3 setup.py build_ext -I $INSTALL_PATH/include -L $INSTALL_PATH/lib -R $INSTALL_PATH/lib >> $LOG_FILE 2>&1
python3 setup.py install $PY_INST_USER >> $LOG_FILE 2>&1
pip install . 2>&1
if [ $? -ne 0 ]; then
echo "python module failed, please see logfile for more details..."
echo "ERROR: python module $PY_EXT failed, please see logfile $LOG_FILE for more details..."
exit 1
fi
cd $basedir
done
Expand Down