9
9
update_jar_manifest ,
10
10
upgrade_jar_file ,
11
11
)
12
- from localstack .utils .files import file_exists_not_empty , save_file
12
+ from localstack .utils .files import save_file
13
13
from localstack .utils .functions import run_safe
14
14
from localstack .utils .http import download
15
- from localstack .utils .platform import get_arch , is_mac_os
16
15
from localstack .utils .run import run
17
16
18
17
# patches for DynamoDB Local
21
20
)
22
21
DDB_AGENT_JAR_URL = f"{ DDB_PATCH_URL_PREFIX } /target/ddb-local-loader-0.1.jar"
23
22
24
- LIBSQLITE_AARCH64_URL = f"{ MAVEN_REPO_URL } /io/github/ganadist/sqlite4java/libsqlite4java-osx-aarch64/1.0.392/libsqlite4java-osx-aarch64-1.0.392.dylib"
25
23
DYNAMODB_JAR_URL = "https://d1ni2b6xgvw0s0.cloudfront.net/v2.x/dynamodb_local_latest.zip"
26
24
JAVASSIST_JAR_URL = f"{ MAVEN_REPO_URL } /org/javassist/javassist/3.28.0-GA/javassist-3.28.0-GA.jar"
27
25
@@ -47,13 +45,6 @@ def _install(self, target: InstallTarget):
47
45
install_dir = self ._get_install_dir (target )
48
46
download_and_extract_with_retry (DYNAMODB_JAR_URL , tmp_archive , install_dir )
49
47
50
- # download additional libs for Mac M1 (for local dev mode)
51
- ddb_local_lib_dir = os .path .join (install_dir , "DynamoDBLocal_lib" )
52
- if is_mac_os () and get_arch () == "arm64" :
53
- target_path = os .path .join (ddb_local_lib_dir , "libsqlite4java-osx-aarch64.dylib" )
54
- if not file_exists_not_empty (target_path ):
55
- download (LIBSQLITE_AARCH64_URL , target_path )
56
-
57
48
# fix logging configuration for DynamoDBLocal
58
49
log4j2_config = """<Configuration status="WARN">
59
50
<Appenders>
@@ -77,6 +68,7 @@ def _install(self, target: InstallTarget):
77
68
if not os .path .exists (javassit_jar_path ):
78
69
download (JAVASSIST_JAR_URL , javassit_jar_path )
79
70
71
+ ddb_local_lib_dir = os .path .join (install_dir , "DynamoDBLocal_lib" )
80
72
upgrade_jar_file (ddb_local_lib_dir , "slf4j-ext-*.jar" , "org/slf4j/slf4j-ext:1.8.0-beta4" )
81
73
82
74
# ensure that javassist.jar is in the manifest classpath
0 commit comments