8000 Enable override of download URLs and ./configure flags for deps by solvingj · Pull Request #59 · codrsquad/portable-python · GitHub
[go: up one dir, main page]

Skip to content

Enable override of download URLs and ./configure flags for deps #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 14, 2025

Conversation

solvingj
Copy link
@solvingj solvingj commented Feb 5, 2025

The ability to download dependencies from private server from public internet is a key enterprise feature:

fixes #7

The ability to override ./configure flags already existed for cpython, this extends it to the deps.

fixes #57

This was needed in our case to add no-dso flag to make openssl statically compile on linux-aarch64.

@solvingj solvingj force-pushed the solvingj/add_url_config branch from 591ca82 to 3defeba Compare February 5, 2025 05:39
- Normalize c_configure_args functions
- Add more extensive comments to root yml file for posterity
@@ -21,14 +21,24 @@ class Bdb(ModuleBuilder):

@property
def url(self):
return f"https://ftp.osuosl.org/pub/blfs/conglomeration/db/db-{self.version}.tar.gz"
return self.cfg_url(self.version) or f"https://ftp.osuosl.org/pub/blfs/conglomeration/db/db-{self.version}.tar.gz"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this, it's a nice step, we could configure all these urls in the default built-in config (user config naturally overrides it).

@@ -104,6 +104,9 @@ def url(self):
if PPG.config.get_value("cpython-use-github"):
return f"https://github.com/python/cpython/archive/refs/tags/v{self.version}.tar.gz"

if cfg_url := self.cfg_url(self.version):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need py3.8+ for :=, we need to adapt python_requires to reflect this in setup.py, and remove the legacy tests, ie the test-eol: section from .github/workflows/tests.yml

@zsimic
Copy link
Contributor
zsimic commented Feb 14, 2025

Thank you! This is a great addition!

@zsimic zsimic merged commit 7f4105b into codrsquad:main Feb 14, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenSSL provides required ssl module APIs... no Request: Add additional security and other enterprise features
2 participants
0