magnificent-toothbrush-17254
02/17/2023, 1:19 AMinterpreter_constraints=[">=2.7"],
in my python_distribution
target. running pants package results in this error:
ProcessExecutionFailure: Process 'Run setuptools.build_meta:__legacy__ for 'scm:scm' failed with exit code 1.
stdout:
stderr:
Traceback (most recent call last):
File "/private/var/folders/tx/j170snrj51x7vsqlr6gjgknm0000gn/T/pants-sandbox-n0BU4K/chroot/../.cache/pex_root/venvs/1286fe9e47a1c2e7c2f0b8f40834df0d199c016c/bbf665a577dacddf63ce4c741b47906e31dbdb6c/pex", line 230, in <module>
exec ast in globals_map, locals_map
File "backend_shim.py", line 21, in <module>
os.makedirs(dist_dir, exist_ok=True)
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'
Probably because 2.7 doesn't have the exist_ok
arg. Couldn't find anything online about how to get this to work, anyone have any ideas what i'm doing wrong? This is a 2 and 3 compatible package, builds fine if i change it to >=3.7
enough-analyst-54434
02/17/2023, 1:23 AMenough-analyst-54434
02/17/2023, 1:24 AM$ find . -name backend_shim.py
turns up nothing in the Pex source code.enough-analyst-54434
02/17/2023, 1:24 AMenough-analyst-54434
02/17/2023, 1:25 AMenough-analyst-54434
02/17/2023, 1:25 AMmagnificent-toothbrush-17254
02/17/2023, 1:25 AM# DO NOT EDIT THIS FILE -- AUTOGENERATED BY PANTS
import os
import setuptools.build_meta
backend = setuptools.build_meta.__legacy__
dist_dir = "dist"
build_wheel = True
build_sdist = True
wheel_config_settings = {
'--global-option': [
'--python-tag',
'py37',
],
}
sdist_config_settings = {
}
os.makedirs(dist_dir, exist_ok=True)
wheel_path = backend.build_wheel(dist_dir, wheel_config_settings) if build_wheel else None
sdist_path = backend.build_sdist(dist_dir, sdist_config_settings) if build_sdist else None
if wheel_path:
print("wheel: {wheel_path}".format(wheel_path=wheel_path))
if sdist_path:
print("sdist: {sdist_path}".format(sdist_path=sdist_path))
enough-analyst-54434
02/17/2023, 1:25 AMmagnificent-toothbrush-17254
02/17/2023, 1:25 AMenough-analyst-54434
02/17/2023, 1:25 AMenough-analyst-54434
02/17/2023, 1:25 AMenough-analyst-54434
02/17/2023, 1:26 AMenough-analyst-54434
02/17/2023, 1:26 AMenough-analyst-54434
02/17/2023, 1:27 AMmagnificent-toothbrush-17254
02/17/2023, 1:28 AMenough-analyst-54434
02/17/2023, 1:28 AMenough-analyst-54434
02/17/2023, 1:29 AMmagnificent-toothbrush-17254
02/17/2023, 1:29 AMenough-analyst-54434
02/17/2023, 1:31 AMmagnificent-toothbrush-17254
02/17/2023, 1:35 AMenough-analyst-54434
02/17/2023, 1:36 AMmagnificent-toothbrush-17254
02/17/2023, 1:46 AMenough-analyst-54434
02/17/2023, 1:50 AMhappy-kitchen-89482
02/17/2023, 2:39 AMhappy-kitchen-89482
02/18/2023, 2:44 PMhappy-kitchen-89482
02/18/2023, 2:45 PMhappy-kitchen-89482
02/18/2023, 2:46 PMhappy-kitchen-89482
02/18/2023, 2:47 PMmagnificent-toothbrush-17254
02/21/2023, 4:36 PM