Skip to content

Commit

Permalink
Removing no longer required dependency on lxml
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMeisrimelModelon committed Sep 29, 2023
1 parent 6155cec commit 88e0824
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- name: Install system
run: |
sudo apt-get -y install python3-scipy python3-setuptools python3-nose cython3 python3-matplotlib python3-lxml
sudo apt-get -y install python3-scipy python3-setuptools python3-nose cython3 python3-matplotlib
sudo apt-get -y install cmake liblapack-dev libsuitesparse-dev libhypre-dev
sudo cp -v /usr/lib/x86_64-linux-gnu/libblas.so /usr/lib/x86_64-linux-gnu/libblas_OPENMP.so
- name: Install superlu
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
--- CHANGELOG ---
--- PyFMI-NEXT_VERSION ---
* Removed utilities related to the obsolete FMUX model interface.
* Removed no longer required dependency on lxml.

--- PyFMI-2.11.0 ---
* Refactored result handling for dynamic_diagnostics. It is now possible use dynamic_diagnostics with a custom result handler.
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ install_requires =
scipy >= 1.3
cython >= 0.29.13
nose >= 1.3.7
lxml >= 4.4.1
matplotlib > 3
assimulo >= 3.2
8 changes: 3 additions & 5 deletions src/pyfmi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
from .fmi_extended import FMUModelME1Extended
import numpy as N
import os.path
import sys
import time

int = N.int32
N.int = N.int32
Expand Down Expand Up @@ -58,7 +60,6 @@ def wrap(func):


def check_packages():
import sys, time
le=30
le_short=15
startstr = "Performing pyfmi package check"
Expand Down Expand Up @@ -102,7 +103,7 @@ def check_packages():
"%s %s" % (("-"*len(modstr)).ljust(le), ("-"*len(verstr)).ljust(le)))
sys.stdout.write("\n")

packages=["assimulo", "Cython", "lxml", "matplotlib", "numpy", "scipy", "wxPython"]
packages=["assimulo", "Cython", "matplotlib", "numpy", "scipy", "wxPython"]

if platform == "win32":
packages.append("pyreadline")
Expand All @@ -120,9 +121,6 @@ def check_packages():
try:
if package == "pyreadline":
vers = mod.release.version
elif package == "lxml":
from lxml import etree
vers = etree.__version__
else:
vers = mod.__version__
except AttributeError:
Expand Down

0 comments on commit 88e0824

Please sign in to comment.