Skip to content

Conversation

@Vikash-Kumar-23
Copy link

This PR adds documentation for the --with-openssl-rpath=auto flag to the Unix build instructions in setup-building.rst.

Technical Context
On several modern Linux distributions and WSL environments, the CPython ./configure script can fail to link the SSL module correctly, even when a compatible OpenSSL version is present. This typically results in the error: Could not build the ssl module! Python requires a OpenSSL 1.1.1 or newer.

Using the --with-openssl-rpath=auto flag ensures the build system correctly identifies the runtime search path for OpenSSL, allowing the _ssl extension to build successfully.

Related Issue
Fixes #1727

Adds the --with-openssl-rpath=auto flag to help resolve "Python requires a OpenSSL 1.1.1 or newer" errors on Linux/WSL. Fixes python#1727.
@python-cla-bot
Copy link

python-cla-bot bot commented Feb 8, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community
Copy link

Documentation build overview

📚 CPython devguide | 🛠️ Build #31321847 | 📁 Comparing 20ad71e against latest (b3bbf54)


🔍 Preview build

Show files changed (3 files in total): 📝 3 modified | ➕ 0 added | ➖ 0 deleted
File Status
versions/index.html 📝 modified
getting-started/setup-building/index.html 📝 modified
contrib/workflows/compile/index.html 📝 modified

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.

Feature: Mention how to configure path to OpenSSL

1 participant