aloof-angle-91616
04/01/2019, 5:03 PMaverage-vr-56795
04/01/2019, 5:08 PMgentle-wolf-58752
04/01/2019, 11:00 PMstocky-portugal-83098
04/02/2019, 5:10 AMbrief-painting-28238
04/02/2019, 1:45 PMbrief-painting-28238
04/02/2019, 1:46 PMIntelliJ IDEA 2019.1 (Ultimate Edition)
Build #IU-191.6183.87, built on March 27, 2019
JRE: 1.8.0_202-release-1483-b39 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.2
brief-painting-28238
04/02/2019, 1:47 PMbrief-painting-28238
04/02/2019, 1:47 PMhappy-kitchen-89482
04/03/2019, 4:17 PMcurved-vase-73456
04/03/2019, 7:32 PMdeploy_jar_rules
in pants.ini
?fresh-architect-74417
04/03/2019, 8:11 PMNo cached artifacts for 18 targets.
Invalidated 18 targets.**** Failed to install diff-match-patch-20181111 (caused by: NonZeroExit("received exit code 1 during execution of `['/usr/bin/python3.5', '-', 'bdist_wheel', '--dist-dir=/tmp/tmp1alFVF']` while trying to execute `['/usr/bin/python3.5', '-', 'bdist_wheel', '--dist-dir=/tmp/tmp1alFVF']`",)
):
stdout:
Installed /tmp/tmpsiCYA3/diff-match-patch-20181111/.eggs/setuptools-0.0.0-py3.5.egg
stderr:
/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
warning: no previously-included files found matching 'pyproject.toml'
Traceback (most recent call last):
File "<stdin>", line 7, in <module>
File "setup.py", line 37, in <module>
install_requires=[],
File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/pants/.pants.d/python-setup/interpreters/CPython-3.5.2/setuptools-30.0.0-py3.5.egg/setuptools/dist.py", line 315, in __init__
File "/pants/.pants.d/python-setup/interpreters/CPython-3.5.2/setuptools-30.0.0-py3.5.egg/setuptools/dist.py", line 361, in fetch_build_eggs
File "/pants/.pants.d/python-setup/interpreters/CPython-3.5.2/setuptools-30.0.0-py3.5.egg/pkg_resources/__init__.py", line 849, in resolve
pkg_resources.DistributionNotFound: The 'setuptools>=38.6.0' distribution was not found and is required by the application
What does it mean? The package setuptools
is not in my pip repo?enough-analyst-54434
04/03/2019, 8:19 PMInstalled /tmp/tmpsiCYA3/diff-match-patch-20181111/.eggs/setuptools-0.0.0-py3.5.egg
enough-analyst-54434
04/03/2019, 8:19 PMfresh-architect-74417
04/03/2019, 8:19 PMenough-analyst-54434
04/03/2019, 8:20 PMenough-analyst-54434
04/03/2019, 8:20 PMenough-analyst-54434
04/03/2019, 8:22 PM$ cat diff-match-patch-20181111/setup.py
from setuptools import setup
with open("README.md") as f:
readme = f.read()
with open("diff_match_patch/__init__.py") as f:
for line in f:
if line.startswith("__version__"):
version = line.split('"')[1]
setup(
name="diff-match-patch",
description="Repackaging of Google's Diff Match and Patch libraries. Offers robust algorithms to perform the operations required for synchronizing plain text.",
long_description=readme,
long_description_content_type="text/markdown",
version=version,
author="Neil Fraser",
author_email="<mailto:fraser@google.com|fraser@google.com>",
url="<https://github.com/diff-match-patch-python/diff-match-patch>",
classifiers=[
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries",
"Topic :: Text Processing",
],
license="Apache",
packages=["diff_match_patch", "diff_match_patch.tests"],
setup_requires=["setuptools>=38.6.0"],
install_requires=[],
)
The setup_requires
may be something Pants/PEX can't handle. This is a well-known wonky feature that doesn't work in general 😕fresh-architect-74417
04/03/2019, 8:23 PMfresh-architect-74417
04/03/2019, 8:25 PMsetup_requires
in my setup.py in pants root directory?fresh-architect-74417
04/03/2019, 8:26 PMfresh-architect-74417
04/03/2019, 8:27 PMenough-analyst-54434
04/03/2019, 8:27 PM./pants --version
fresh-architect-74417
04/03/2019, 8:28 PM1.9.0.dev0
enough-analyst-54434
04/03/2019, 8:29 PMenough-analyst-54434
04/03/2019, 8:34 PMrm -rf .pants.d/python-setup/
cat <<EOF >> pants.ini
[python-setup]
setuptools_version: 38.6.0
EOF
enough-analyst-54434
04/03/2019, 8:35 PMsetuptools>=20.3,<34.0
.enough-analyst-54434
04/03/2019, 8:35 PMfresh-architect-74417
04/03/2019, 8:35 PMfresh-architect-74417
04/03/2019, 8:45 PMfresh-architect-74417
04/03/2019, 8:45 PM