-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
auto-lockedOutdated issues that have been locked by automationOutdated issues that have been locked by automationgood first issueA good item for first time contributors to work onA good item for first time contributors to work onproject: setuptoolsRelated to setuptoolsRelated to setuptoolstype: enhancementImprovements to functionalityImprovements to functionality
Description
setuptools (and probably distutils) assume the very first argument from sys.argv to be the executed setup file. Invoking a python subprocess with -c to execute a command will set '-c' to be the very first argument to sys.argv (see the docs). This leads to the manifest_maker warning noted at
Line 868 in 9b11ed2
r"^warning: manifest_maker: standard file '-c' not found$"]: |
As a workaround, manipulate the argument list prior to exec() in
Line 843 in 9b11ed2
"import setuptools, tokenize; __file__=%r; exec(compile(" |
import sys, setuptools, tokenize
sys.argv[0] = %r; ....
Metadata
Metadata
Assignees
Labels
auto-lockedOutdated issues that have been locked by automationOutdated issues that have been locked by automationgood first issueA good item for first time contributors to work onA good item for first time contributors to work onproject: setuptoolsRelated to setuptoolsRelated to setuptoolstype: enhancementImprovements to functionalityImprovements to functionality