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

Fix/removing python3.10 wheels #116

Merged
merged 4 commits into from
Feb 23, 2022
Merged
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
4 changes: 4 additions & 0 deletions .github/workflows/testing-and-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ jobs:
quay.io/pypa/manylinux2014_x86_64 \
/io/.ci/build_wheels.sh ${{ matrix.python-version }}

- name: Install VTK on Python 3.10
if: matrix.python-version == '3.10'
run: pip install --find-links https://wheels.pyvista.org/ vtk

- name: Build wheel on Windows
if: ${{ runner.os == 'Windows' }}
run: |
Expand Down
27 changes: 23 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,32 @@ Installation
------------
Installation through pip::

pip install ansys-mapdl-reader
pip install ansys-mapdl-reader

You can also visit `pymapdl-reader <https://github.com/pyansys/pymapdl-reader>`_
to download the source or releases from GitHub.

Python 3.10 Extra Instructions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Loading and Plotting an ANSYS Archive File
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PyMAPDL-Reader requires the `VTK library <https://vtk.org/>`_ which, at the
moment, is not available for Python 3.10 in `their official channel
<https://pypi.org/project/vtk/>`_.

If you wish to install PyMAPDL-Reader in Python 3.10, you can still do it by
using the unofficial VTK wheel from PyVista using ``--find-links``. This tells ``pip`` to look for vtk at `wheels.pyvista.org <https://wheels.pyvista.org/>`_. Use this with::

pip install ansys-mapdl-reader --find-links https://wheels.pyvista.org/

Please visit `Unofficial VTK Wheels for Python 3.10
<https://github.com/pyvista/pyvista/discussions/2064>`_ for further details.


Examples
--------

Loading and Plotting a MAPDL Archive File
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ANSYS archive files containing solid elements (both legacy and
modern), can be loaded using Archive and then converted to a vtk
object.
Expand Down Expand Up @@ -215,7 +233,7 @@ movie_filename and animate it with:


Reading a Full File
-------------------
~~~~~~~~~~~~~~~~~~~
This example reads in the mass and stiffness matrices associated with
the above example.

Expand Down Expand Up @@ -277,6 +295,7 @@ you will need to install your own C++ compiler. We recommend:

To get the package up and running.


License and Acknowledgments
---------------------------
The ``ansys-mapdl-reader`` module is licensed under the MIT license.
13 changes: 0 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,6 @@ def compiler_name():
'Please check the version of Python installed at\n'
'%s' % sys.executable)


if sys.version_info.minor == 10 and is64:
# use pip to check if vtk is available or installed
sys_name = platform.system()
if sys_name == 'Linux':
install_requires.append(
'vtk @ https://github.com/pyvista/pyvista-wheels/raw/main/vtk-9.1.0.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl',
)
elif sys_name == 'Windows':
install_requires.append(
'vtk @ https://github.com/pyvista/pyvista-wheels/raw/main/vtk-9.1.0.dev0-cp310-cp310-win_amd64.whl',
)

setup(
name='ansys-mapdl-reader',
packages=['ansys.mapdl.reader', 'ansys.mapdl.reader.examples'],
Expand Down