imcs-compsim / meshpy

A general purpose 3D beam finite element input generator
Other
9 stars 3 forks source link

Define the python version #76

Open eulovi opened 2 months ago

eulovi commented 2 months ago

While trying to run Meshpy, I noticed that Meshpy is now using Python 3.12. In the Installation instructions, it is unclear if this Python version is used, since with python3 -m venv meshpy-env a python environment is created with the local Python3 version, which can be different from Python 3.12.
Should the installation instructions be updated?

davidrudlstorfer commented 2 months ago

It would be nice to just switch to a conda environment and maybe update the install instructions accordingly?

Something like

conda create -n meshpy python=3.12

conda activate meshpy

pip install -e .

isteinbrecher commented 1 month ago

Thanks for the suggestion. We should definitely adapt the script so it works with the main version of meshpy. @davidrudlstorfer I am against an installation instruction completely relying on conda. But maybe something like:

Installation

MeshPy is developed with python3.12. Other versions of Python might lead to issues. It is recommended to use a python environment container such as venv or conda.

From now on we assume that the previously created enviroment is loaded. To install meshpy go to the repository root directory

cd <path_to_meshpy>

...