Skip to content

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

Merged
jaraco merged 2 commits intopypa:mainfrom
DWesl:patch-3
Jul 31, 2022
Merged

DOC: Extend Windows rpath error message with likely cause#161
jaraco merged 2 commits intopypa:mainfrom
DWesl:patch-3

Conversation

@DWesl
Copy link
Copy Markdown
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.
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
Copy Markdown
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
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