musica 0.11.1.1__cp311-cp311-macosx_11_0_arm64.whl → 0.11.1.3__cp311-cp311-macosx_11_0_arm64.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 musica might be problematic. Click here for more details.

musica/CMakeLists.txt CHANGED
@@ -19,15 +19,8 @@ if (APPLE)
19
19
  BUILD_WITH_INSTALL_RPATH TRUE
20
20
  )
21
21
  elseif(UNIX)
22
- set(CUDA_RPATH
23
- "$ORIGIN/../../nvidia/cublas/lib"
24
- "$ORIGIN/../../nvidia/cuda_runtime/lib"
25
- )
26
-
27
- message(STATUS "Adding RPATH for python site packages libs at ${CUDA_RPATH}")
28
-
29
22
  set_target_properties(_musica PROPERTIES
30
- INSTALL_RPATH "$ORIGIN;${CUDA_RPATH}"
23
+ INSTALL_RPATH "$ORIGIN"
31
24
  BUILD_WITH_INSTALL_RPATH TRUE
32
25
  )
33
26
  endif()
@@ -44,4 +37,11 @@ else()
44
37
  set(PYTHON_MODULE_PATH "${CMAKE_CURRENT_BINARY_DIR}")
45
38
  endif()
46
39
 
47
- install(TARGETS _musica yaml-cpp musica LIBRARY DESTINATION .)
40
+ install(TARGETS _musica LIBRARY DESTINATION musica)
41
+
42
+ install(
43
+ TARGETS
44
+ yaml-cpp musica
45
+ LIBRARY DESTINATION musica/lib
46
+ ARCHIVE DESTINATION musica/lib
47
+ )
musica/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
- from _musica import *
1
+ from musica._musica import *
2
2
  from .types import *
3
3
  from .mechanism_configuration import *
musica/_version.py CHANGED
@@ -1 +1 @@
1
- version = "0.11.1.1"
1
+ version = "0.11.1.3"
Binary file
Binary file
@@ -4,7 +4,7 @@
4
4
  # This file is part of the musica Python package.
5
5
  # For more information, see the LICENSE file in the top-level directory of this distribution.
6
6
  from typing import Optional, Any, Dict, List, Union, Tuple
7
- from _musica._mechanism_configuration import (
7
+ from musica._musica._mechanism_configuration import (
8
8
  _ReactionType,
9
9
  _Species,
10
10
  _Phase,
@@ -3,7 +3,7 @@ import numpy as np
3
3
  import musica
4
4
  import random
5
5
  import musica.mechanism_configuration as mc
6
- from _musica._core import _is_cuda_available
6
+ from musica._musica._core import _is_cuda_available
7
7
 
8
8
 
9
9
  def TestSingleGridCell(solver, state, time_step, places=5):
@@ -1,6 +1,6 @@
1
1
  import pytest
2
2
  from musica.mechanism_configuration import *
3
- from _musica._mechanism_configuration import _ReactionType
3
+ from musica._musica._mechanism_configuration import _ReactionType
4
4
 
5
5
 
6
6
  def validate_species(species):
@@ -7,16 +7,22 @@ for whl in "$2"/*.whl; do
7
7
  tmpdir=$(mktemp -d)
8
8
  unzip -q "$whl" -d "$tmpdir"
9
9
  tree "$tmpdir"
10
+ so_path="$tmpdir"/musica/_musica*.so
10
11
  echo "Before patchelf:"
11
- readelf -d "$tmpdir"/_musica*.so
12
- patchelf --remove-rpath "$tmpdir"/_musica*.so
13
- patchelf --set-rpath "\$ORIGIN:\$ORIGIN/../../nvidia/cublas/lib:\$ORIGIN/../../nvidia/cuda_runtime/lib" --force-rpath "$tmpdir"/_musica*.so
12
+ readelf -d $so_path
13
+ # Use patchelf to fix the rpath and library dependencies
14
+ patchelf --remove-rpath $so_path
15
+ patchelf --set-rpath "\$ORIGIN:\$ORIGIN/../nvidia/cublas/lib:\$ORIGIN/../nvidia/cuda_runtime/lib" --force-rpath $so_path
16
+ # these may need to be periodically updated
17
+ patchelf --replace-needed libcudart-b5a066d7.so.12.2.140 libcudart.so.12 $so_path
18
+ patchelf --replace-needed libcublas-e779a79d.so.12.2.5.6 libcublas.so.12 $so_path
19
+ patchelf --replace-needed libcublasLt-fbfbc8a1.so.12.2.5.6 libcublasLt.so.12 $so_path
14
20
  # Remove bundled CUDA libraries
15
21
  rm -f "$tmpdir"/musica.libs/libcudart-*.so*
16
22
  rm -f "$tmpdir"/musica.libs/libcublas-*.so*
17
23
  rm -f "$tmpdir"/musica.libs/libcublasLt-*.so*
18
24
  echo "After patchelf:"
19
- readelf -d "$tmpdir"/_musica*.so
25
+ readelf -d $so_path
20
26
  # Repack the wheel with correct structure
21
27
  (cd "$tmpdir" && zip -qr "${whl%.whl}.patched.whl" .)
22
28
  rm -rf "$tmpdir"
musica/types.py CHANGED
@@ -3,10 +3,10 @@
3
3
  #
4
4
  # This file is part of the musica Python package.
5
5
  # For more information, see the LICENSE file in the top-level directory of this distribution.
6
- from typing import Optional, Any, Dict, List, Union, Tuple
6
+ from typing import Optional, Dict, List, Union, Tuple
7
7
  from os import PathLike
8
8
  import math
9
- from _musica._core import (
9
+ from musica._musica._core import (
10
10
  _Conditions,
11
11
  _SolverType,
12
12
  _Solver,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: musica
3
- Version: 0.11.1.1
3
+ Version: 0.11.1.3
4
4
  Summary: MUSICA is a Python library for performing computational simulations in atmospheric chemistry.
5
5
  Author-Email: Matthew Dawsom <mattdawson@ucar.edu>, Jiwon Gim <jiwongim@ucar.edu>, David Fillmore <fillmore@ucar.edu>, Kyle Shores <kshores@ucar.edu>, Montek Thind <mthind@ucar.edu>
6
6
  Maintainer-Email: ACOM MUSICA Developers <musica-support@ucar.edu>
@@ -1,25 +1,23 @@
1
- _musica.cpython-311-darwin.so,sha256=UhR4b7c6midhbygkVsV7P0XALgEUHKJKKnrWy1E-_tg,1693440
2
- musica-0.11.1.1.dist-info/RECORD,,
3
- musica-0.11.1.1.dist-info/WHEEL,sha256=v20ZoihpvGQ2MIpmMhDC3RxOojjT26wiePNzcVNSzeM,114
4
- musica-0.11.1.1.dist-info/METADATA,sha256=URpXjU5lo-wyROln6GI9YbAqGFDPH0gq8O30EzTW5uc,20814
5
- musica-0.11.1.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
6
- lib/libyaml-cpp.a,sha256=0s7V45-6NqziPQshuI3bVKcKr3SYx-HTt4PBBzI0jLQ,795856
7
- lib/libmusica.a,sha256=jjZO9JnUbfr31hSi3jNUM-wz8-43YBs4h8HdQoTzTaQ,1355336
8
- musica/CMakeLists.txt,sha256=FJkD0MaB1qUNDpyCsjELAW4wpuSslfzyo-YCJwLkIp4,1128
9
- musica/mechanism_configuration.py,sha256=pma248L_jjQecsxL9zIn-S4KxXNlSL1NL4LB4fN5jV0,58011
1
+ musica-0.11.1.3.dist-info/RECORD,,
2
+ musica-0.11.1.3.dist-info/WHEEL,sha256=v20ZoihpvGQ2MIpmMhDC3RxOojjT26wiePNzcVNSzeM,114
3
+ musica-0.11.1.3.dist-info/METADATA,sha256=oB8w46MzI7reKyE2mtWvpuBY0dtjSIYXk7zrBjbXrog,20814
4
+ musica-0.11.1.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
+ musica/CMakeLists.txt,sha256=3U0eWvyisYs7N3hjIbF4jvZmyu1ANASWu3TFbUWbdY8,1032
6
+ musica/mechanism_configuration.py,sha256=NXQRxKR_vqWSdhXLBQoZmfjNHuYhIQIcFdRMU9V0MjM,58018
10
7
  musica/binding.cpp,sha256=zDD_TQ7icS_lNG7iUAp23VG7_odbptGJbtRdYjalsdc,656
11
- musica/_version.py,sha256=TDOJiVZ58e1fM3phG3qufrhY43ZQTXYyp_PCrrYj2Ek,21
12
- musica/__init__.py,sha256=CW7SVuK4kO8bYg8wB56YGun-NBRmBqWQO379qP21Yvo,82
13
- musica/types.py,sha256=WQYTDT3aZQVvCyXmaEGuBYqtdx3IZk1Ao5bcmPUGzXM,14895
8
+ musica/_version.py,sha256=rWofPK7FSYAXzMkIby1qsuT93bZ5vP19yAl8ow1RFtg,21
9
+ musica/_musica.cpython-311-darwin.so,sha256=UhR4b7c6midhbygkVsV7P0XALgEUHKJKKnrWy1E-_tg,1693440
10
+ musica/__init__.py,sha256=v81Z3iQfONy1NdSlRB7Skdwl2mGYF-w9K_zbXzA9HqM,89
11
+ musica/types.py,sha256=kK7pyXLMobfHz5y7mJy858-4YE2RJC5PsOsbBB5ktX0,14897
14
12
  musica/mechanism_configuration.cpp,sha256=E7GGeftgQGL303nsk2C7pwYpPiMAQcuxdbadohHb1QM,27100
15
13
  musica/musica.cpp,sha256=BBRtL9_Q62ia_vhmpTqpnHHGimPBpCR5YVth8x0i0h4,8399
16
14
  musica/tools/prepare_build_environment_windows.sh,sha256=zMY_RIerqfMC1VlfpZ2KjjDWfBUOvvx8oRNk_jJhmII,826
17
15
  musica/tools/prepare_build_environment_linux.sh,sha256=9rkT0bTVmu9QQqhS6eGRX1HXMQZLfkUGakkC3i5VKec,1466
18
- musica/tools/repair_wheel_gpu.sh,sha256=PHWls1cS9QOElQDIgSMOh7TkHB8UNylZbls9zSjSus0,917
19
- musica/test/test_parser.py,sha256=VhOPNrcDnFGgk2v_iMoLNq5JBP22VbkHTHLk3N09d3s,24292
16
+ musica/tools/repair_wheel_gpu.sh,sha256=L3jdsUfqiBeulXrkmxiVD0ZjvfdKO7PYjOq1RSyWXFw,1259
17
+ musica/test/test_parser.py,sha256=vvuy2YJzkh0kc28zCS8vB7x4FYsS06kx0YN_cBFTQQ0,24299
20
18
  musica/test/test_chapman.py,sha256=Wm0wLy6E1Zm8p6cLaICQO9tSy_szMkYn9E7MPCtobno,3070
21
19
  musica/test/tuvx.py,sha256=rWvBcG6cgLJylqkf8M0MFMKT2AkyoaZlGdaKjVSbCR8,116
22
- musica/test/test_analytical.py,sha256=5rIlpy5bzpTfZNv8wAND8O5KA8Wvh3Bm64pTRRlSHgc,13775
20
+ musica/test/test_analytical.py,sha256=3yS61j3uD3d0jhA7kBN5yzA6qoGuGGlnb-UeNH-N-PE,13782
23
21
  musica/test/examples/v1/full_configuration.yaml,sha256=s9Go7AQv9OFQ7zVb1k4wmDj2vpHYzVCTRqi8JZTHlUM,5235
24
22
  musica/test/examples/v1/full_configuration.json,sha256=7AqPhTHodSjtV8LOPoUsA9MtCu_Xc28RVOlhNGPI9GQ,8807
25
23
  musica/test/examples/v0/species.json,sha256=xKTcwh9QV9sRjLPK9GvGEnatBrRPbP857NmPG0bCXqU,565
@@ -28,3 +26,5 @@ musica/test/examples/v0/config.json,sha256=7s6g5jxH2GiEiRcZmO13IJ5k4walg1C9t-dQr
28
26
  musica/test/examples/v0/config.yaml,sha256=GgA18mP8ZCzOdY-AlAePK48M05PJFPeWCk-IfrPN_VE,44
29
27
  musica/test/examples/v0/reactions.json,sha256=7WJhItBPtGu89vLcPMK6izW8BvwUAIjfzqwjtDmfPPg,4188
30
28
  musica/test/examples/v0/reactions.yaml,sha256=uEuQOz5i7vGyn0G7KsmdWv23V2Gn0QUmexrK030CFlo,2266
29
+ musica/lib/libyaml-cpp.a,sha256=i4XjgmvjZSz4dIvC_LFpr1Gcx92cmQ775YAKP44R4l0,795856
30
+ musica/lib/libmusica.a,sha256=NXUXUSqlHoPZXbLPHwMVvZ6NALq9ZLjunKxfLM5b7Hs,1355336