We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de9bb32 commit 2ac0a79Copy full SHA for 2ac0a79
setuptools/_distutils/file_util.py
@@ -104,6 +104,10 @@ def copy_file( # noqa: C901
104
from distutils._modified import newer
105
from stat import S_IMODE, ST_ATIME, ST_MODE, ST_MTIME
106
107
+ if not os.path.isfile(src):
108
+ src = os.path.join(os.path.dirname(src), "lib" + os.path.basename(src))
109
110
+ src = os.path.join(os.path.dirname(src), os.path.basename(src) + ".a")
111
if not os.path.isfile(src):
112
raise DistutilsFileError(
113
f"can't copy '{src}': doesn't exist or not a regular file"
0 commit comments