ansys-pyensight-core 0.9.16__py3-none-any.whl → 0.10.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ansys-pyensight-core might be problematic. Click here for more details.

@@ -274,8 +274,23 @@ class Omniverse:
274
274
  if platform.system() == "Windows":
275
275
  self._interpreter += ".bat"
276
276
  return
277
+ # Check if the python interpreter is kit itself
278
+ is_omni = False
279
+ try:
280
+ import omni # noqa: F401
281
+
282
+ is_omni = "kit" in os.path.basename(sys.executable)
283
+ except ModuleNotFoundError:
284
+ pass
277
285
  # Using the python interpreter running this code
278
286
  self._interpreter = sys.executable
287
+ if is_omni:
288
+ kit_path = os.path.dirname(sys.executable)
289
+ self._interpreter = os.path.join(kit_path, "python")
290
+ if platform.system() == "Windows":
291
+ self._interpreter += ".bat"
292
+ else:
293
+ self._interpreter += ".sh"
279
294
 
280
295
  # in the future, these will be part of the pyensight wheel
281
296
  # dependencies, but for now we include this check.
@@ -27,13 +27,21 @@ import logging
27
27
  import math
28
28
  import os
29
29
  import shutil
30
+ import sys
30
31
  import tempfile
31
32
  from typing import Any, Dict, List, Optional
33
+ import warnings
32
34
 
33
35
  from ansys.pyensight.core.utils.dsg_server import Part, UpdateHandler
34
36
  import numpy
35
37
  import png
36
- from pxr import Gf, Kind, Sdf, Usd, UsdGeom, UsdLux, UsdShade
38
+
39
+ try:
40
+ from pxr import Gf, Kind, Sdf, Usd, UsdGeom, UsdLux, UsdShade
41
+ except ModuleNotFoundError:
42
+ if sys.version_info.minor >= 13:
43
+ warnings.warn("USD Export not supported for Python >= 3.13")
44
+ sys.exit(1)
37
45
 
38
46
 
39
47
  class OmniverseWrapper(object):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ansys-pyensight-core
3
- Version: 0.9.16
3
+ Version: 0.10.0
4
4
  Summary: A python wrapper for Ansys EnSight
5
5
  Author-email: "ANSYS, Inc." <pyansys.core@ansys.com>
6
6
  Maintainer-email: "ANSYS, Inc." <pyansys.core@ansys.com>
@@ -14,6 +14,7 @@ Classifier: Operating System :: OS Independent
14
14
  Classifier: Programming Language :: Python :: 3.10
15
15
  Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
17
18
  License-File: LICENSE
18
19
  Requires-Dist: importlib-metadata>=4.0; python_version<='3.8'
19
20
  Requires-Dist: ansys-api-pyensight==0.4.7
@@ -24,9 +25,8 @@ Requires-Dist: numpy>=1.21.0,<3
24
25
  Requires-Dist: Pillow>=9.3.0
25
26
  Requires-Dist: pypng>=0.0.20
26
27
  Requires-Dist: psutil>=5.9.2
27
- Requires-Dist: usd-core==24.8
28
+ Requires-Dist: usd-core==24.8; python_version < '3.13'
28
29
  Requires-Dist: pygltflib>=1.16.2
29
- Requires-Dist: grpcio<=1.67.1
30
30
  Requires-Dist: build>=0.10.0 ; extra == "dev"
31
31
  Requires-Dist: bump2version>=1.0.1 ; extra == "dev"
32
32
  Requires-Dist: ipdb>=0.9.4 ; extra == "dev"
@@ -20,9 +20,9 @@ ansys/pyensight/core/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
20
20
  ansys/pyensight/core/utils/adr.py,sha256=XslZhlwcrSGzOlnhzprOv3ju_ppxxsWBjCnQL5KiNms,3570
21
21
  ansys/pyensight/core/utils/dsg_server.py,sha256=ScNf7sb339kvEGIwIAlJpxzPvOGbUSnvNrCat9soFlw,46769
22
22
  ansys/pyensight/core/utils/export.py,sha256=UAJQcrElo3esQD0CWdxxjMQ8yE1vB4cdAhF33_uZfQw,22605
23
- ansys/pyensight/core/utils/omniverse.py,sha256=irghU1wcIvo_lHhZV2VxYKCSQkNWCF8njJjWfExiFgI,18455
23
+ ansys/pyensight/core/utils/omniverse.py,sha256=qeIA9WgHHsf-fylT5I3z7rBUZUlSEOR-fLTvqgCPqbQ,18996
24
24
  ansys/pyensight/core/utils/omniverse_cli.py,sha256=aVYu4HsSZBl7A9_xU3DfItNB-hpxCdMPXm_oMAOU_HQ,20261
25
- ansys/pyensight/core/utils/omniverse_dsg_server.py,sha256=JCklPQC4xqwnvB7zVdLW80RpB9DlKN3hgs_Sj4sPhFY,39995
25
+ ansys/pyensight/core/utils/omniverse_dsg_server.py,sha256=-62_pDAJ0UlFnjf91Ra4W63musyJxdBON1L66bve7ns,40186
26
26
  ansys/pyensight/core/utils/omniverse_glb_server.py,sha256=KSaLvGfyREu9bSTA3wgiAzf68s0KfQuWLwHbZ1Zf5vE,31824
27
27
  ansys/pyensight/core/utils/parts.py,sha256=222XFRCjLgH7hho-cK9JrGCg3-KlTf54KIgc7y50sTE,52173
28
28
  ansys/pyensight/core/utils/query.py,sha256=OXKDbf1sOTX0sUvtKcp64LhVl-BcrEsE43w8uMxLOYI,19828
@@ -31,7 +31,7 @@ ansys/pyensight/core/utils/support.py,sha256=QI3z9ex7zJxjFbkCPba9DWqWgPFIThORqr0
31
31
  ansys/pyensight/core/utils/variables.py,sha256=ZUiJdDIeRcowrnLXaJQqGwA0RbrfXhc1s4o4v9A4PiY,95133
32
32
  ansys/pyensight/core/utils/views.py,sha256=ZKhJ6vMT7Rdd4bwJ0egMYTV7-D7Q7I19fF2_j_CMQ0o,12489
33
33
  ansys/pyensight/core/utils/resources/Materials/000_sky.exr,sha256=xAR1gFd2uxPZDnvgfegdhEhRaqKtZldQDiR_-1rHKO0,8819933
34
- ansys_pyensight_core-0.9.16.dist-info/licenses/LICENSE,sha256=K6LiJHOa9IbWFelXmXNRzFr3zG45SOGZIN7vdLdURGU,1097
35
- ansys_pyensight_core-0.9.16.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
36
- ansys_pyensight_core-0.9.16.dist-info/METADATA,sha256=FMcEpbbbCLZkKZ4Do6jFVWp86ev5qth4alL8UAOsyFM,12123
37
- ansys_pyensight_core-0.9.16.dist-info/RECORD,,
34
+ ansys_pyensight_core-0.10.0.dist-info/licenses/LICENSE,sha256=K6LiJHOa9IbWFelXmXNRzFr3zG45SOGZIN7vdLdURGU,1097
35
+ ansys_pyensight_core-0.10.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
36
+ ansys_pyensight_core-0.10.0.dist-info/METADATA,sha256=dmlDa6r_UFNXdNxuBouVLtvnE9icLaI3UU4pJF-PZMo,12169
37
+ ansys_pyensight_core-0.10.0.dist-info/RECORD,,