Skip to content

Commit

Permalink
depend on packaging module
Browse files Browse the repository at this point in the history
  • Loading branch information
singingwolfboy committed Nov 8, 2023
1 parent 4512214 commit 4c46519
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/conda/conda-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ dependencies:
- eigenpy
- urdfdom
- python
- packaging
- mamba
4 changes: 2 additions & 2 deletions bindings/python/pinocchio/visualize/meshcat_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
import warnings
import numpy as np
from distutils.version import LooseVersion
from packaging.version import Version

try:
import hppfcl
Expand Down Expand Up @@ -154,7 +154,7 @@ def loadMesh(mesh):
tri = call_triangles(k)
faces[k] = [tri[i] for i in range(3)]

if LooseVersion(hppfcl.__version__) >= LooseVersion("1.7.7"):
if Version(hppfcl.__version__) >= Version("1.7.7"):
vertices = call_vertices()
else:
vertices = np.empty((num_vertices, 3))
Expand Down

0 comments on commit 4c46519

Please sign in to comment.