Skip to content

Commit 5564fb5

Browse files
committed
Reduce package size by dropping static lib
1 parent 4ad3e85 commit 5564fb5

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

changelog.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Changelog
22

3-
## v1.7.0 | In development
3+
## v1.7.0 | 2023-06-22
44

55
- Recipe build performance and Conan cache usage have been improved further (on top of the improvements in v1.6.0) by optimizing the way licenses are gathered. The recipe now takes advantage of a new feature in `pip-license` v4.2.0 to gather licenses from an external environment. This way, we don't need to re-install packages just to gather licenses, thus cutting both build time and Conan cache usage in half.
6+
- Reduced package size for Python >= 3.10 on macOS and Linux by removing the `libpython*.a` static library. This brings these platforms in line with the existing package for Windows. Only shared libraries are included.
67

78
## v1.6.0 | 2023-06-07
89

conanfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class EmbeddedPython(ConanFile):
3737
short_paths = True # some of the pip packages go over the 260 char path limit on Windows
3838

3939
def requirements(self):
40-
self.requires(f"embedded_python-core/1.0.0@{self.user}/{self.channel}")
40+
self.requires(f"embedded_python-core/1.1.0@{self.user}/{self.channel}")
4141

4242
def configure(self):
4343
self.options["embedded_python-core"].version = self.options.version

core/conanfile.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# noinspection PyUnresolvedReferences
1313
class EmbeddedPythonCore(ConanFile):
1414
name = "embedded_python-core"
15-
version = "1.0.0" # of the Conan package, `options.version` is the Python version
15+
version = "1.1.0" # of the Conan package, `options.version` is the Python version
1616
license = "PSFL"
1717
description = "The core embedded Python (no extra pip packages)"
1818
topics = "embedded", "python"
@@ -107,6 +107,7 @@ def generate(self):
107107
openssl_path = self.dependencies[openssl_pck].package_folder
108108
tc.configure_args += [
109109
"--enable-shared",
110+
"--without-static-libpython",
110111
"--disable-test-modules",
111112
f"--with-openssl={openssl_path}",
112113
]

0 commit comments

Comments
 (0)