Skip to content
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

DOC: Extend Windows rpath error message with likely cause #161

Merged
merged 2 commits into from
Jul 31, 2022

Conversation

DWesl
Copy link
Contributor

@DWesl DWesl commented Jul 31, 2022

Extend the error message for attempting to call runtime_library_dir_option on Windows with the most likely way I have found to trigger the call, creating an Extension that specifies runtime_library_dirs.

Hopefully this will give users something to search for in their setup.py and a starting point for what to change. Inspired by pypa/setuptools#3450.

Since this is now an error, should this be documented in the setuptools documentation for Extension as well?

Extend the error message for attempting to call `runtime_library_dir_option` on Windows with the most likely way I have found to trigger the call, creating an `Extension` that specifies `runtime_library_dirs`.

Hopefully this will give users something to search for in their `setup.py` and a starting point for what to change.  Inspired by pypa/setuptools#3450.
@@ -341,7 +341,9 @@ def __init__(self, verbose=0, dry_run=0, force=0):

def runtime_library_dir_option(self, dir):
raise DistutilsPlatformError(
"don't know how to set runtime library search path on Windows"
"don't know how to set runtime library search path on Windows\n"
Copy link
Member

Choose a reason for hiding this comment

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

The original message appears to be a copy/paste from line 279. Probably we'll want to consolidate the messaging (even though one is an error and one is a warning). I'll use this commit as inspiration for a more concise message.

@jaraco jaraco self-assigned this Jul 31, 2022
@jaraco jaraco merged commit 28875ac into pypa:main Jul 31, 2022
This was referenced Aug 1, 2022
This was referenced Aug 8, 2022
daregit pushed a commit to daregit/yocto-combined that referenced this pull request May 22, 2024
Merge with pypa/distutils@129480b, including substantial delinting and cleanup,
some refactoring around compiler logic, better messaging in cygwincompiler (pypa/distutils#161).

(From OE-Core rev: bc488be5a8d260a0bdc69c37173a7168706f9be3)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
daregit pushed a commit to daregit/yocto-combined that referenced this pull request May 22, 2024
Merge with pypa/distutils@129480b, including substantial delinting and cleanup,
some refactoring around compiler logic, better messaging in cygwincompiler (pypa/distutils#161).

(From OE-Core rev: bc488be5a8d260a0bdc69c37173a7168706f9be3)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.

2 participants