Skip to content

Instantly share code, notes, and snippets.

@tmr232
Created December 13, 2014 18:15
Show Gist options
  • Save tmr232/e53f2de4a168c45a2191 to your computer and use it in GitHub Desktop.
Save tmr232/e53f2de4a168c45a2191 to your computer and use it in GitHub Desktop.
def _remove_visual_c_ref(self, manifest_file):
try:
# Remove references to the Visual C runtime, so they will
# fall through to the Visual C dependency of Python.exe.
# This way, when installed for a restricted user (e.g.
# runtimes are not in WinSxS folder, but in Python's own
# folder), the runtimes do not need to be in every folder
# with .pyd's.
# Returns either the filename of the modified manifest or
# None if no manifest should be embedded.
# Rest of the function removed for brevity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment