This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dgelessus
Recipients dgelessus, ned.deily, ronaldoussoren
Date 2020-04-20.20:25:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587414304.89.0.21994090879.issue40198@roundup.psfhosted.org>
In-reply-to
Content
I can confirm that the newly released Python 2.7.18 has the .allow-dyld-environment-variables entitlement:

$ ./python2.7 --version
Python 2.7.18
$ codesign --display --entitlements=:- python2.7
Executable=/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.disable-executable-page-protection</key>
<true/>
</dict>
</plist>

and accepts DYLD_LIBRARY_PATH again:

$ DYLD_LIBRARY_PATH=tests/objc ./python2.7 -c 'import os; print(os.environ.get("DYLD_LIBRARY_PATH"))'
tests/objc

Thank you for the fix!
History
Date User Action Args
2020-04-20 20:25:04dgelessussetrecipients: + dgelessus, ronaldoussoren, ned.deily
2020-04-20 20:25:04dgelessussetmessageid: <1587414304.89.0.21994090879.issue40198@roundup.psfhosted.org>
2020-04-20 20:25:04dgelessuslinkissue40198 messages
2020-04-20 20:25:04dgelessuscreate