Skip to content

Commit fb2469b

Browse files
authored
liblzma (#86)
* liblzma * option
1 parent b59a65c commit fb2469b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ option(WITH_NODE_TESTS "With node tests" OFF)
77
option(LINK_LIBEXPAT "Link libexpat" OFF)
88
option(LINK_LIBMPDEC "Link libmpdec" OFF)
99

10+
option(LINK_LIBLZMA "Link liblzma" OFF)
11+
1012
# set PY_VERSION to 3.11 if the user has not set it
1113
if (NOT DEFINED PY_VERSION)
1214
set(PY_VERSION 3.11)
@@ -154,6 +156,10 @@ SET(PYTHON_UTIL_LIBS
154156
${CMAKE_INSTALL_PREFIX}/lib/libcrypto.a
155157
)
156158

159+
if(LINK_LIBLZMA)
160+
SET(PYTHON_UTIL_LIBS ${PYTHON_UTIL_LIBS} ${CMAKE_INSTALL_PREFIX}/lib/liblzma.a)
161+
endif()
162+
157163

158164
if (LINK_LIBEXPAT)
159165
SET(PYTHON_UTIL_LIBS ${PYTHON_UTIL_LIBS} ${CMAKE_INSTALL_PREFIX}/lib/libexpat.a)

build_mkdocs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ if [ ! -d "$WASM_ENV_PREFIX" ]; then
2323
--yes \
2424
python=$PYTHON_VERSION "pybind11" nlohmann_json pybind11_json numpy \
2525
bzip2 sqlite zlib zstd libffi exceptiongroup\
26-
"xeus" "xeus-lite" xeus-python "xeus-javascript" xtl "ipython=8.22.2=py311had7285e_1" "traitlets>=5.14.2" openssl
26+
"xeus" "xeus-lite" xeus-python "xeus-javascript" xtl "ipython=8.22.2=py311had7285e_1" "traitlets>=5.14.2" \
27+
openssl
2728

2829
else
2930
echo "Wasm env $WASM_ENV_NAME already exists"

tests/tests/test_pyjs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
if sys.version_info[0] == 3 and sys.version_info[1] >= 13:
2424
def test_ssl_import():
2525
import ssl
26+
27+
def test_import_lzma():
28+
import lzma
2629

2730
def test_js_submodule():
2831
from pyjs.js import Function

0 commit comments

Comments
 (0)