Building PyOPUS from sources
Requirements
PyOPUS 0.11.1 was tested under Windows 10 (64-bit) with
- Python 3.11.3
- PyQt5 5.15.9
- pyqtgraph 0.13.3
- MatPlotLib 3.7.1
- SciPy 1.10.1
- Greenlet 2.0.2
- CVXOPT 1.3.1
- Lxml 4.9.2
- Microsoft MPI 10.1.1 with mpi4py 3.1.4
- Pandas 2.0.2
- Python-datatable 1.1.3
- Visual Studio 2019
A collection of 64-bit Windows prerequisites for running PyOPUS can be found here.
PyOPUS 0.11.1 was tested under Debian 12 Bookworm (64-bit) with
- Python 3.11.2
- PyQt5 5.15.9
- pyqtgraph 0.13.1
- MatPlotLib 3.6.3
- NumPy 1.24.2
- SciPy 1.10.1
- Greenlet 2.0.2
- CVXOPT 1.3.0
- Lxml 4.9.2
- OpenMPI 4.1.4 with MPI4py 3.1.4
- Pandas 1.5.3
- Datatable 1.0.0
- gcc 12.2.0
As of version 0.11 32-bit Windows quickstart support was discontinued. The main reason is that the 32-bit Windows SciPy wheel is no longer available (PyPI no longer provides it, and Christoph Gohlke's wheel site is down).
Unpacking PyOPUS sources
tar xvf <sources>.tar.gz
Building PyOPUS for Linux (wheel, demos and documentation, and source)
Tested under Debian 11 (Bookworm) amd64
1. Install prerequisites for Linux PyOPUS installation
2. Install prerequisites for building. Type
apt-get install gcc g++ libstdc++-6-dev make texlive texlive-latex-extra dvipng graphviz python3-wheel python3-dev python3-sphinx python3-sphinx-rtd-theme python3-setuptools
This installs packages
gcc g++ libstdc++-6-dev make texlive texlive-latex-extra dvipng graphviz python3-wheel python3-dev python3-sphinx python3-sphinx-rtd-theme python3-setuptools python3-build
3. Set up and activate a Python virtual environment (consult the README file).
4. In the folder where PyOPUS sources are located type
./pack
The wheel file, demos and documentation, and the source package will be placed under dist/
Do not panic if you get a segfault at the end of the build (after the docs are built). The error is due to the way plot threads are implemented in PyOPUS. The plotting library is imported when documentation is built and causes a segfault at exit.
Building for Windows (wheel only)
Tested under Windows 10
1. Install prerequisites for Windows PyOPUS installation.
2. Install prerequisites for building.
Visual Studio 2019
Python libraries (in command prompt)
pip install setuptools pip install wheel pip install build
3. If PyOpus was installed in development mode (editable install) uninstall it before building by typing
pip uninstall pyopus
This command is commented out in the beginning of pack.bat.
4. Start VS 2019 x64 Native Tools Command Prompt, go to the folder where PyOPUS sources are located, and type
pack.bat
The wheel file will be placed under dist/
Install PyOPUS for development (in source folders)
n this way PyOpus is installed in the folder where the sources used for building it are located. In this way all changes to .py files will affect te behavior of the library immediately. This kind of installation is also referred to as editable install.
Enter the source folder (where pyopus/ subfolder is located). First, build PyOpus with
python3 -m build --no-isolation --wheel
Under Linux type:
pip3 install -e .
Under Windows type:
pip install -e .
This command is commented out at the end of the pack.bat script for Windows.
Under Linux development install is performed by the pack script before the documetation is built in order for Sphinx to be able to import PyOpus modules. After the documentation is built PyOpus in uninstalled. If you want to keep PyOpus installed in development mode, comment out the line
pip3 uninstall -y pyopus
at the end of the pack script.
News :
- 2023-08-23
PyOPUS 0.11.1 released - 2023-06-01
PyOPUS 0.11 released - 2022-04-21
PyOPUS 0.10 released - 2018-09-10
PyOPUS 0.9 released - 2015-07-10
PyOPUS 0.8 released - 2012-12-04
PyOPUS 0.7 released - 2012-03-12
Windows Quickstart - 2011-10-15
PyOPUS 0.6 released
Links :
EDA Laboratory
Faculty of Electrical Engineering
University of Ljubljana
Maintained by Árpád Bűrmen
Design by Minimalistic Design