Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install darker globally #343

Closed
chmouel opened this issue Mar 24, 2022 · 7 comments
Closed

Cannot install darker globally #343

chmouel opened this issue Mar 24, 2022 · 7 comments

Comments

@chmouel
Copy link
Contributor

chmouel commented Mar 24, 2022

Describe the bug
Trying to install darker globally (or as --user) on a arch python3.10 environment i am getting :

% python3 setup.py
Traceback (most recent call last):
  File "/tmp/darker/setup.py", line 49, in <module>
    setup(long_description=make_pypi_compliant_readme())
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 152, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 145, in _install_setup_requires
    dist.parse_config_files(ignore_option_errors=True)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 801, in parse_config_files
    self._finalize_requires()
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 528, in _finalize_requires
    self._move_install_requirements_markers()
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 567, in _move_install_requirements_markers
    inst_reqs = list(pkg_resources.parse_requirements(spec_inst_reqs))
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3098, in parse_requirements
    yield Requirement(line)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3108, in __init__
    super(Requirement, self).__init__(requirement_string)
  File "/usr/lib/python3.10/site-packages/packaging/requirements.py", line 113, in __init__
    req = REQUIREMENT.parseString(requirement_string)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 1100, in parse_string
    loc, tokens = self._parse(instring, 0)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 3810, in parseImpl
    loc, exprtokens = e._parse(instring, loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 4024, in parseImpl
    return e._parse(
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 3810, in parseImpl
    loc, exprtokens = e._parse(instring, loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 4854, in parseImpl
    loc, tokens = self_expr._parse(instring, loc, doActions, callPreParse=False)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 3810, in parseImpl
    loc, exprtokens = e._parse(instring, loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 827, in _parseNoCache
    tokens = fn(instring, tokens_start, ret_tokens)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 283, in wrapper
    ret = func(*args[limit:])
  File "/usr/lib/python3.10/site-packages/packaging/requirements.py", line 81, in <lambda>
    lambda s, l, t: Marker(s[t._original_start : t._original_end])
TypeError: slice indices must be integers or None or have an __index__ method
% 
% sudo su
[root@pignon darker]# python3 setup.py 
Traceback (most recent call last):
  File "/tmp/darker/setup.py", line 49, in <module>
    setup(long_description=make_pypi_compliant_readme())
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 152, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 145, in _install_setup_requires
    dist.parse_config_files(ignore_option_errors=True)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 801, in parse_config_files
    self._finalize_requires()
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 528, in _finalize_requires
    self._move_install_requirements_markers()
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 567, in _move_install_requirements_markers
    inst_reqs = list(pkg_resources.parse_requirements(spec_inst_reqs))
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3098, in parse_requirements
    yield Requirement(line)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3108, in __init__
    super(Requirement, self).__init__(requirement_string)
  File "/usr/lib/python3.10/site-packages/packaging/requirements.py", line 113, in __init__
    req = REQUIREMENT.parseString(requirement_string)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 1100, in parse_string
    loc, tokens = self._parse(instring, 0)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 3810, in parseImpl
    loc, exprtokens = e._parse(instring, loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 4024, in parseImpl
    return e._parse(
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 3810, in parseImpl
    loc, exprtokens = e._parse(instring, loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 4854, in parseImpl
    loc, tokens = self_expr._parse(instring, loc, doActions, callPreParse=False)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 790, in _parseNoCache
    loc, tokens = self.parseImpl(instring, pre_loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 3810, in parseImpl
    loc, exprtokens = e._parse(instring, loc, doActions)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 827, in _parseNoCache
    tokens = fn(instring, tokens_start, ret_tokens)
  File "/usr/lib/python3.10/site-packages/pyparsing/core.py", line 283, in wrapper
    ret = func(*args[limit:])
  File "/usr/lib/python3.10/site-packages/packaging/requirements.py", line 81, in <lambda>
    lambda s, l, t: Marker(s[t._original_start : t._original_end])
TypeError: slice indices must be integers or None or have an __index__ method

I am not really sure what I am missing.

Same issue with pip version :

% pip install darker
Defaulting to user installation because normal site-packages is not writeable
Collecting darker
  Using cached darker-1.4.2-py3-none-any.whl (84 kB)
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3030, in _dep_map
    return self.__dep_map
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2827, in __getattr__
    raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
``

It does work properly when using a virtualenv 

I can't figure out if it's an issue with Arch or my setup, any ideas?
@akaihola
Copy link
Owner

First, I tried installing Darker as root in an Ubuntu Docker image (using Podman, but that shouldn't make a difference). That seems to work (click on triangles to see output):

$ podman run --rm -it -v /home/akaihola/darker:/darker:rw ubuntu bash
# apt update && apt install -y python3-pip python3-setuptools ca-certificates
# cd /darker
# python3 setup.py install
running install
running bdist_egg
running egg_info
writing src/darker.egg-info/PKG-INFO
writing dependency_links to src/darker.egg-info/dependency_links.txt
writing entry points to src/darker.egg-info/entry_points.txt
writing requirements to src/darker.egg-info/requires.txt
writing top-level names to src/darker.egg-info/top_level.txt
reading manifest file 'src/darker.egg-info/SOURCES.txt'
writing manifest file 'src/darker.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/darker
creating build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/__init__.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/without_pygments.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/with_pygments.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/lexers.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/linting.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/import_sorting.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/black_diff.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/__main__.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/__init__.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/verification.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/git.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/command_line.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/exceptions.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/concurrency.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/utils.py -> build/bdist.linux-x86_64/egg/darker
creating build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_main_revision.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_black_diff.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/helpers.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/__init__.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_verification.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_git.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_command_line.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_main_blacken_single_file.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_main.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_highlighting.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_difflib.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_config.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_chooser.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_concurrency.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_linting.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/conftest.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_diff.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_argparse_helpers.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_import_sorting.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/git_diff_example_output.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_utils.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/help.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/argparse_helpers.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/version.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/diff.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/config.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/chooser.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/black_compat.py -> build/bdist.linux-x86_64/egg/darker
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/without_pygments.py to without_pygments.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/with_pygments.py to with_pygments.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/lexers.py to lexers.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/linting.py to linting.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/import_sorting.py to import_sorting.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/black_diff.py to black_diff.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/__main__.py to __main__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/verification.py to verification.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/git.py to git.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/command_line.py to command_line.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/exceptions.py to exceptions.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/concurrency.py to concurrency.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/utils.py to utils.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_main_revision.py to test_main_revision.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_black_diff.py to test_black_diff.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/helpers.py to helpers.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_verification.py to test_verification.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_git.py to test_git.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_command_line.py to test_command_line.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_main_blacken_single_file.py to test_main_blacken_single_file.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_main.py to test_main.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_highlighting.py to test_highlighting.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_difflib.py to test_difflib.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_config.py to test_config.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_chooser.py to test_chooser.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_concurrency.py to test_concurrency.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_linting.py to test_linting.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/conftest.py to conftest.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_diff.py to test_diff.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_argparse_helpers.py to test_argparse_helpers.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_import_sorting.py to test_import_sorting.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/git_diff_example_output.py to git_diff_example_output.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_utils.py to test_utils.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/help.py to help.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/argparse_helpers.py to argparse_helpers.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/version.py to version.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/diff.py to diff.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/config.py to config.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/chooser.py to chooser.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/black_compat.py to black_compat.cpython-38.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/darker-1.4.2-py3.8.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing darker-1.4.2-py3.8.egg
Removing /usr/local/lib/python3.8/dist-packages/darker-1.4.2-py3.8.egg
Copying darker-1.4.2-py3.8.egg to /usr/local/lib/python3.8/dist-packages
darker 1.4.2 is already the active version in easy-install.pth
Installing darker script to /usr/local/bin

Installed /usr/local/lib/python3.8/dist-packages/darker-1.4.2-py3.8.egg
Processing dependencies for darker==1.4.2
Searching for toml>=0.10.0
Reading https://pypi.org/simple/toml/
Downloading https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl#sha256=806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b
Best match: toml 0.10.2
Processing toml-0.10.2-py2.py3-none-any.whl
Installing toml-0.10.2-py2.py3-none-any.whl to /usr/local/lib/python3.8/dist-packages
Adding toml 0.10.2 to easy-install.pth file

Installed /usr/local/lib/python3.8/dist-packages/toml-0.10.2-py3.8.egg
Searching for black>=21.5b1
Reading https://pypi.org/simple/black/
Downloading https://files.pythonhosted.org/packages/a5/59/bd6d44da2b364fd2bd7a0b2ce2edfe200b79faad1cde14ce5ef13d504393/black-22.1.0-py3-none-any.whl#sha256=3524739d76b6b3ed1132422bf9d82123cd1705086723bc3e235ca39fd21c667d
Best match: black 22.1.0
Processing black-22.1.0-py3-none-any.whl
Installing black-22.1.0-py3-none-any.whl to /usr/local/lib/python3.8/dist-packages
Adding black 22.1.0 to easy-install.pth file
Installing black script to /usr/local/bin
Installing black-primer script to /usr/local/bin
Installing blackd script to /usr/local/bin

Installed /usr/local/lib/python3.8/dist-packages/black-22.1.0-py3.8.egg
Searching for typing-extensions>=3.10.0.0
Reading https://pypi.org/simple/typing-extensions/
Downloading https://files.pythonhosted.org/packages/45/6b/44f7f8f1e110027cf88956b59f2fad776cca7e1704396d043f89effd3a0e/typing_extensions-4.1.1-py3-none-any.whl#sha256=21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2
Best match: typing-extensions 4.1.1
Processing typing_extensions-4.1.1-py3-none-any.whl
Installing typing_extensions-4.1.1-py3-none-any.whl to /usr/local/lib/python3.8/dist-packages
Adding typing-extensions 4.1.1 to easy-install.pth file

Installed /usr/local/lib/python3.8/dist-packages/typing_extensions-4.1.1-py3.8.egg
Searching for tomli>=1.1.0
Reading https://pypi.org/simple/tomli/
Downloading https://files.pythonhosted.org/packages/97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9/tomli-2.0.1-py3-none-any.whl#sha256=939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc
Best match: tomli 2.0.1
Processing tomli-2.0.1-py3-none-any.whl
Installing tomli-2.0.1-py3-none-any.whl to /usr/local/lib/python3.8/dist-packages
Adding tomli 2.0.1 to easy-install.pth file

Installed /usr/local/lib/python3.8/dist-packages/tomli-2.0.1-py3.8.egg
Searching for platformdirs>=2
Reading https://pypi.org/simple/platformdirs/
Downloading https://files.pythonhosted.org/packages/de/de/d8b9da351517c3dece273224522d4714cfdb9a89e2e6f7f7f054a340cc2b/platformdirs-2.5.1-py3-none-any.whl#sha256=bcae7cab893c2d310a711b70b24efb93334febe65f8de776ee320b517471e227
Best match: platformdirs 2.5.1
Processing platformdirs-2.5.1-py3-none-any.whl
Installing platformdirs-2.5.1-py3-none-any.whl to /usr/local/lib/python3.8/dist-packages
Adding platformdirs 2.5.1 to easy-install.pth file

Installed /usr/local/lib/python3.8/dist-packages/platformdirs-2.5.1-py3.8.egg
Searching for pathspec>=0.9.0
Reading https://pypi.org/simple/pathspec/
Downloading https://files.pythonhosted.org/packages/42/ba/a9d64c7bcbc7e3e8e5f93a52721b377e994c22d16196e2b0f1236774353a/pathspec-0.9.0-py2.py3-none-any.whl#sha256=7d15c4ddb0b5c802d161efc417ec1a2558ea2653c2e8ad9c19098201dc1c993a
Best match: pathspec 0.9.0
Processing pathspec-0.9.0-py2.py3-none-any.whl
Installing pathspec-0.9.0-py2.py3-none-any.whl to /usr/local/lib/python3.8/dist-packages
Adding pathspec 0.9.0 to easy-install.pth file

Installed /usr/local/lib/python3.8/dist-packages/pathspec-0.9.0-py3.8.egg
Searching for mypy-extensions>=0.4.3
Reading https://pypi.org/simple/mypy-extensions/
Downloading https://files.pythonhosted.org/packages/5c/eb/975c7c080f3223a5cdaff09612f3a5221e4ba534f7039db34c35d95fa6a5/mypy_extensions-0.4.3-py2.py3-none-any.whl#sha256=090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d
Best match: mypy-extensions 0.4.3
Processing mypy_extensions-0.4.3-py2.py3-none-any.whl
Installing mypy_extensions-0.4.3-py2.py3-none-any.whl to /usr/local/lib/python3.8/dist-packages
Adding mypy-extensions 0.4.3 to easy-install.pth file

Installed /usr/local/lib/python3.8/dist-packages/mypy_extensions-0.4.3-py3.8.egg
Searching for click>=8.0.0
Reading https://pypi.org/simple/click/
Downloading https://files.pythonhosted.org/packages/4a/a8/0b2ced25639fb20cc1c9784de90a8c25f9504a7f18cd8b5397bd61696d7d/click-8.0.4-py3-none-any.whl#sha256=6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1
Best match: click 8.0.4
Processing click-8.0.4-py3-none-any.whl
Installing click-8.0.4-py3-none-any.whl to /usr/local/lib/python3.8/dist-packages
Adding click 8.0.4 to easy-install.pth file

Installed /usr/local/lib/python3.8/dist-packages/click-8.0.4-py3.8.egg
Finished processing dependencies for darker==1.4.2
# pip install darker
Collecting darker
  Downloading darker-1.4.2-py3-none-any.whl (84 kB)
     |████████████████████████████████| 84 kB 2.3 MB/s 
Collecting black>=21.5b1
  Downloading black-22.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 9.3 MB/s 
Collecting toml>=0.10.0
  Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting click>=8.0.0
  Downloading click-8.0.4-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 4.4 MB/s 
Collecting typing-extensions>=3.10.0.0; python_version < "3.10"
  Downloading typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Collecting mypy-extensions>=0.4.3
  Downloading mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting tomli>=1.1.0
  Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting platformdirs>=2
  Downloading platformdirs-2.5.1-py3-none-any.whl (14 kB)
Collecting pathspec>=0.9.0
  Downloading pathspec-0.9.0-py2.py3-none-any.whl (31 kB)
Installing collected packages: click, typing-extensions, mypy-extensions, tomli, platformdirs, pathspec, black, toml, darker
Successfully installed black-22.1.0 click-8.0.4 darker-1.4.2 mypy-extensions-0.4.3 pathspec-0.9.0 platformdirs-2.5.1 toml-0.10.2 tomli-2.0.1 typing-extensions-4.1.1

@akaihola
Copy link
Owner

akaihola commented Mar 26, 2022

I then tried the same but with a non-root user, still works correctly:

$ podman run --rm -it -v /home/akaihola/darker:/darker:rw ubuntu bash
# useradd akaihola
# mkdir /home/akaihola
# chown akaihola. /home/akaihola
# apt update && apt install -y python3-pip python3-setuptools ca-certificates
# su akaihola
$ pip install darker
Collecting darker
  Downloading darker-1.4.2-py3-none-any.whl (84 kB)
     |████████████████████████████████| 84 kB 2.3 MB/s 
Collecting toml>=0.10.0
  Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting black>=21.5b1
  Downloading black-22.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 31.0 MB/s 
Collecting platformdirs>=2
  Downloading platformdirs-2.5.1-py3-none-any.whl (14 kB)
Collecting typing-extensions>=3.10.0.0; python_version < "3.10"
  Downloading typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Collecting click>=8.0.0
  Downloading click-8.0.4-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 5.4 MB/s 
Collecting tomli>=1.1.0
  Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting pathspec>=0.9.0
  Downloading pathspec-0.9.0-py2.py3-none-any.whl (31 kB)
Collecting mypy-extensions>=0.4.3
  Downloading mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Installing collected packages: toml, platformdirs, typing-extensions, click, tomli, pathspec, mypy-extensions, black, darker
  WARNING: The scripts black, black-primer and blackd are installed in '/home/akaihola/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script darker is installed in '/home/akaihola/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed black-22.1.0 click-8.0.4 darker-1.4.2 mypy-extensions-0.4.3 pathspec-0.9.0 platformdirs-2.5.1 toml-0.10.2 tomli-2.0.1 typing-extensions-4.1.1
cp -r /darker ~ ; cd ~/darker && python3 setup.py install --user
running install
running bdist_egg
running egg_info
writing src/darker.egg-info/PKG-INFO
writing dependency_links to src/darker.egg-info/dependency_links.txt
writing entry points to src/darker.egg-info/entry_points.txt
writing requirements to src/darker.egg-info/requires.txt
writing top-level names to src/darker.egg-info/top_level.txt
reading manifest file 'src/darker.egg-info/SOURCES.txt'
writing manifest file 'src/darker.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/darker
creating build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/__init__.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/without_pygments.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/with_pygments.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/lexers.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/linting.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/import_sorting.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/black_diff.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/__main__.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/__init__.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/verification.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/git.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/command_line.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/exceptions.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/concurrency.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/utils.py -> build/bdist.linux-x86_64/egg/darker
creating build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_main_revision.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_black_diff.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/helpers.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/__init__.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_verification.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_git.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_command_line.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_main_blacken_single_file.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_main.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_highlighting.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_difflib.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_config.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_chooser.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_concurrency.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_linting.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/conftest.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_diff.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_argparse_helpers.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_import_sorting.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/git_diff_example_output.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_utils.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/help.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/argparse_helpers.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/version.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/diff.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/config.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/chooser.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/black_compat.py -> build/bdist.linux-x86_64/egg/darker
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/without_pygments.py to without_pygments.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/with_pygments.py to with_pygments.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/lexers.py to lexers.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/linting.py to linting.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/import_sorting.py to import_sorting.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/black_diff.py to black_diff.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/__main__.py to __main__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/verification.py to verification.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/git.py to git.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/command_line.py to command_line.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/exceptions.py to exceptions.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/concurrency.py to concurrency.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/utils.py to utils.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_main_revision.py to test_main_revision.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_black_diff.py to test_black_diff.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/helpers.py to helpers.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_verification.py to test_verification.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_git.py to test_git.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_command_line.py to test_command_line.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_main_blacken_single_file.py to test_main_blacken_single_file.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_main.py to test_main.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_highlighting.py to test_highlighting.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_difflib.py to test_difflib.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_config.py to test_config.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_chooser.py to test_chooser.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_concurrency.py to test_concurrency.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_linting.py to test_linting.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/conftest.py to conftest.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_diff.py to test_diff.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_argparse_helpers.py to test_argparse_helpers.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_import_sorting.py to test_import_sorting.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/git_diff_example_output.py to git_diff_example_output.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_utils.py to test_utils.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/help.py to help.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/argparse_helpers.py to argparse_helpers.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/version.py to version.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/diff.py to diff.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/config.py to config.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/chooser.py to chooser.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/black_compat.py to black_compat.cpython-38.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/darker-1.4.2-py3.8.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing darker-1.4.2-py3.8.egg
Copying darker-1.4.2-py3.8.egg to /home/akaihola/.local/lib/python3.8/site-packages
Adding darker 1.4.2 to easy-install.pth file
Installing darker script to /home/akaihola/.local/bin

Installed /home/akaihola/.local/lib/python3.8/site-packages/darker-1.4.2-py3.8.egg
Processing dependencies for darker==1.4.2
Searching for toml>=0.10.0
Reading https://pypi.org/simple/toml/
Downloading https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl#sha256=806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b
Best match: toml 0.10.2
Processing toml-0.10.2-py2.py3-none-any.whl
Installing toml-0.10.2-py2.py3-none-any.whl to /home/akaihola/.local/lib/python3.8/site-packages
Adding toml 0.10.2 to easy-install.pth file

Installed /home/akaihola/.local/lib/python3.8/site-packages/toml-0.10.2-py3.8.egg
Searching for black>=21.5b1
Reading https://pypi.org/simple/black/
Downloading https://files.pythonhosted.org/packages/a5/59/bd6d44da2b364fd2bd7a0b2ce2edfe200b79faad1cde14ce5ef13d504393/black-22.1.0-py3-none-any.whl#sha256=3524739d76b6b3ed1132422bf9d82123cd1705086723bc3e235ca39fd21c667d
Best match: black 22.1.0
Processing black-22.1.0-py3-none-any.whl
Installing black-22.1.0-py3-none-any.whl to /home/akaihola/.local/lib/python3.8/site-packages
Adding black 22.1.0 to easy-install.pth file
Installing black script to /home/akaihola/.local/bin
Installing black-primer script to /home/akaihola/.local/bin
Installing blackd script to /home/akaihola/.local/bin

Installed /home/akaihola/.local/lib/python3.8/site-packages/black-22.1.0-py3.8.egg
Searching for typing-extensions>=3.10.0.0
Reading https://pypi.org/simple/typing-extensions/
Downloading https://files.pythonhosted.org/packages/45/6b/44f7f8f1e110027cf88956b59f2fad776cca7e1704396d043f89effd3a0e/typing_extensions-4.1.1-py3-none-any.whl#sha256=21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2
Best match: typing-extensions 4.1.1
Processing typing_extensions-4.1.1-py3-none-any.whl
Installing typing_extensions-4.1.1-py3-none-any.whl to /home/akaihola/.local/lib/python3.8/site-packages
Adding typing-extensions 4.1.1 to easy-install.pth file

Installed /home/akaihola/.local/lib/python3.8/site-packages/typing_extensions-4.1.1-py3.8.egg
Searching for tomli>=1.1.0
Reading https://pypi.org/simple/tomli/
Downloading https://files.pythonhosted.org/packages/97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9/tomli-2.0.1-py3-none-any.whl#sha256=939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc
Best match: tomli 2.0.1
Processing tomli-2.0.1-py3-none-any.whl
Installing tomli-2.0.1-py3-none-any.whl to /home/akaihola/.local/lib/python3.8/site-packages
Adding tomli 2.0.1 to easy-install.pth file

Installed /home/akaihola/.local/lib/python3.8/site-packages/tomli-2.0.1-py3.8.egg
Searching for platformdirs>=2
Reading https://pypi.org/simple/platformdirs/
Downloading https://files.pythonhosted.org/packages/de/de/d8b9da351517c3dece273224522d4714cfdb9a89e2e6f7f7f054a340cc2b/platformdirs-2.5.1-py3-none-any.whl#sha256=bcae7cab893c2d310a711b70b24efb93334febe65f8de776ee320b517471e227
Best match: platformdirs 2.5.1
Processing platformdirs-2.5.1-py3-none-any.whl
Installing platformdirs-2.5.1-py3-none-any.whl to /home/akaihola/.local/lib/python3.8/site-packages
Adding platformdirs 2.5.1 to easy-install.pth file

Installed /home/akaihola/.local/lib/python3.8/site-packages/platformdirs-2.5.1-py3.8.egg
Searching for pathspec>=0.9.0
Reading https://pypi.org/simple/pathspec/
Downloading https://files.pythonhosted.org/packages/42/ba/a9d64c7bcbc7e3e8e5f93a52721b377e994c22d16196e2b0f1236774353a/pathspec-0.9.0-py2.py3-none-any.whl#sha256=7d15c4ddb0b5c802d161efc417ec1a2558ea2653c2e8ad9c19098201dc1c993a
Best match: pathspec 0.9.0
Processing pathspec-0.9.0-py2.py3-none-any.whl
Installing pathspec-0.9.0-py2.py3-none-any.whl to /home/akaihola/.local/lib/python3.8/site-packages
Adding pathspec 0.9.0 to easy-install.pth file

Installed /home/akaihola/.local/lib/python3.8/site-packages/pathspec-0.9.0-py3.8.egg
Searching for mypy-extensions>=0.4.3
Reading https://pypi.org/simple/mypy-extensions/
Downloading https://files.pythonhosted.org/packages/5c/eb/975c7c080f3223a5cdaff09612f3a5221e4ba534f7039db34c35d95fa6a5/mypy_extensions-0.4.3-py2.py3-none-any.whl#sha256=090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d
Best match: mypy-extensions 0.4.3
Processing mypy_extensions-0.4.3-py2.py3-none-any.whl
Installing mypy_extensions-0.4.3-py2.py3-none-any.whl to /home/akaihola/.local/lib/python3.8/site-packages
Adding mypy-extensions 0.4.3 to easy-install.pth file

Installed /home/akaihola/.local/lib/python3.8/site-packages/mypy_extensions-0.4.3-py3.8.egg
Searching for click>=8.0.0
Reading https://pypi.org/simple/click/
Downloading https://files.pythonhosted.org/packages/4a/a8/0b2ced25639fb20cc1c9784de90a8c25f9504a7f18cd8b5397bd61696d7d/click-8.0.4-py3-none-any.whl#sha256=6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1
Best match: click 8.0.4
Processing click-8.0.4-py3-none-any.whl
Installing click-8.0.4-py3-none-any.whl to /home/akaihola/.local/lib/python3.8/site-packages
Adding click 8.0.4 to easy-install.pth file

Installed /home/akaihola/.local/lib/python3.8/site-packages/click-8.0.4-py3.8.egg
Finished processing dependencies for darker==1.4.2

@akaihola
Copy link
Owner

akaihola commented Mar 26, 2022

Same with Arch as root, works ok:

$ podman run --rm -it -v /home/akaihola/darker:/darker:rw archlinux bash
# pacman -Sy --noconfirm python-pip && pip install darker
Collecting darker
  Downloading darker-1.4.2-py3-none-any.whl (84 kB)
     |████████████████████████████████| 84 kB 2.5 MB/s             
Collecting black>=21.5b1
  Downloading black-22.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 15.8 MB/s            
Requirement already satisfied: toml>=0.10.0 in /usr/lib/python3.10/site-packages (from darker) (0.10.2)
Collecting mypy-extensions>=0.4.3
  Downloading mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting platformdirs>=2
  Downloading platformdirs-2.5.1-py3-none-any.whl (14 kB)
Requirement already satisfied: tomli>=1.1.0 in /usr/lib/python3.10/site-packages (from black>=21.5b1->darker) (2.0.1)
Collecting pathspec>=0.9.0
  Downloading pathspec-0.9.0-py2.py3-none-any.whl (31 kB)
Collecting click>=8.0.0
  Downloading click-8.0.4-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 5.4 MB/s             
Installing collected packages: platformdirs, pathspec, mypy-extensions, click, black, darker
Successfully installed black-22.1.0 click-8.0.4 darker-1.4.2 mypy-extensions-0.4.3 pathspec-0.9.0 platformdirs-2.5.1
# pacman -Sy --noconfirm python-setuptools && cd /darker && python setup.py install
running install
/usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3.10/site-packages/setuptools/command/easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
writing src/darker.egg-info/PKG-INFO
writing dependency_links to src/darker.egg-info/dependency_links.txt
writing entry points to src/darker.egg-info/entry_points.txt
writing requirements to src/darker.egg-info/requires.txt
writing top-level names to src/darker.egg-info/top_level.txt
reading manifest file 'src/darker.egg-info/SOURCES.txt'
adding license file 'LICENSE.rst'
writing manifest file 'src/darker.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/darker
creating build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/__init__.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/without_pygments.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/with_pygments.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/lexers.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/linting.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/import_sorting.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/black_diff.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/__main__.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/__init__.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/verification.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/git.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/command_line.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/exceptions.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/concurrency.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/utils.py -> build/bdist.linux-x86_64/egg/darker
creating build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_main_revision.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_black_diff.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/helpers.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/__init__.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_verification.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_git.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_command_line.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_main_blacken_single_file.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_main.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_highlighting.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_difflib.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_config.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_chooser.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_concurrency.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_linting.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/conftest.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_diff.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_argparse_helpers.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_import_sorting.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/git_diff_example_output.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_utils.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/help.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/argparse_helpers.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/version.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/diff.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/config.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/chooser.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/black_compat.py -> build/bdist.linux-x86_64/egg/darker
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/without_pygments.py to without_pygments.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/with_pygments.py to with_pygments.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/lexers.py to lexers.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/linting.py to linting.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/import_sorting.py to import_sorting.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/black_diff.py to black_diff.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/__main__.py to __main__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/verification.py to verification.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/git.py to git.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/command_line.py to command_line.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/exceptions.py to exceptions.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/concurrency.py to concurrency.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/utils.py to utils.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_main_revision.py to test_main_revision.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_black_diff.py to test_black_diff.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/helpers.py to helpers.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_verification.py to test_verification.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_git.py to test_git.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_command_line.py to test_command_line.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_main_blacken_single_file.py to test_main_blacken_single_file.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_main.py to test_main.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_highlighting.py to test_highlighting.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_difflib.py to test_difflib.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_config.py to test_config.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_chooser.py to test_chooser.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_concurrency.py to test_concurrency.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_linting.py to test_linting.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/conftest.py to conftest.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_diff.py to test_diff.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_argparse_helpers.py to test_argparse_helpers.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_import_sorting.py to test_import_sorting.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/git_diff_example_output.py to git_diff_example_output.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_utils.py to test_utils.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/help.py to help.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/argparse_helpers.py to argparse_helpers.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/version.py to version.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/diff.py to diff.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/config.py to config.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/chooser.py to chooser.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/black_compat.py to black_compat.cpython-310.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/darker-1.4.2-py3.10.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing darker-1.4.2-py3.10.egg
Copying darker-1.4.2-py3.10.egg to /usr/lib/python3.10/site-packages
Adding darker 1.4.2 to easy-install.pth file
Installing darker script to /usr/bin

Installed /usr/lib/python3.10/site-packages/darker-1.4.2-py3.10.egg
Processing dependencies for darker==1.4.2
Searching for black>=21.5b1
Reading https://pypi.org/simple/black/
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release
  warnings.warn(
Downloading https://files.pythonhosted.org/packages/b3/4b/e490650ee69bd53bad29956969346fa9d345422eb9ed9e201ec9533688eb/black-22.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=e2f69158a7d120fd641d1fa9a921d898e20d52e44a74a6fbbcc570a62a6bc8ab
Best match: black 22.1.0
Processing black-22.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Installing black-22.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl to /usr/lib/python3.10/site-packages
Adding black 22.1.0 to easy-install.pth file
Installing black script to /usr/bin
Installing black-primer script to /usr/bin
Installing blackd script to /usr/bin

Installed /usr/lib/python3.10/site-packages/black-22.1.0-py3.10-linux-x86_64.egg
Searching for platformdirs>=2
Reading https://pypi.org/simple/platformdirs/
Downloading https://files.pythonhosted.org/packages/de/de/d8b9da351517c3dece273224522d4714cfdb9a89e2e6f7f7f054a340cc2b/platformdirs-2.5.1-py3-none-any.whl#sha256=bcae7cab893c2d310a711b70b24efb93334febe65f8de776ee320b517471e227
Best match: platformdirs 2.5.1
Processing platformdirs-2.5.1-py3-none-any.whl
Installing platformdirs-2.5.1-py3-none-any.whl to /usr/lib/python3.10/site-packages
Adding platformdirs 2.5.1 to easy-install.pth file

Installed /usr/lib/python3.10/site-packages/platformdirs-2.5.1-py3.10.egg
Searching for pathspec>=0.9.0
Reading https://pypi.org/simple/pathspec/
Downloading https://files.pythonhosted.org/packages/42/ba/a9d64c7bcbc7e3e8e5f93a52721b377e994c22d16196e2b0f1236774353a/pathspec-0.9.0-py2.py3-none-any.whl#sha256=7d15c4ddb0b5c802d161efc417ec1a2558ea2653c2e8ad9c19098201dc1c993a
Best match: pathspec 0.9.0
Processing pathspec-0.9.0-py2.py3-none-any.whl
Installing pathspec-0.9.0-py2.py3-none-any.whl to /usr/lib/python3.10/site-packages
Adding pathspec 0.9.0 to easy-install.pth file

Installed /usr/lib/python3.10/site-packages/pathspec-0.9.0-py3.10.egg
Searching for mypy-extensions>=0.4.3
Reading https://pypi.org/simple/mypy-extensions/
Downloading https://files.pythonhosted.org/packages/5c/eb/975c7c080f3223a5cdaff09612f3a5221e4ba534f7039db34c35d95fa6a5/mypy_extensions-0.4.3-py2.py3-none-any.whl#sha256=090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d
Best match: mypy-extensions 0.4.3
Processing mypy_extensions-0.4.3-py2.py3-none-any.whl
Installing mypy_extensions-0.4.3-py2.py3-none-any.whl to /usr/lib/python3.10/site-packages
Adding mypy-extensions 0.4.3 to easy-install.pth file

Installed /usr/lib/python3.10/site-packages/mypy_extensions-0.4.3-py3.10.egg
Searching for click>=8.0.0
Reading https://pypi.org/simple/click/
Downloading https://files.pythonhosted.org/packages/4a/a8/0b2ced25639fb20cc1c9784de90a8c25f9504a7f18cd8b5397bd61696d7d/click-8.0.4-py3-none-any.whl#sha256=6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1
Best match: click 8.0.4
Processing click-8.0.4-py3-none-any.whl
Installing click-8.0.4-py3-none-any.whl to /usr/lib/python3.10/site-packages
Adding click 8.0.4 to easy-install.pth file

Installed /usr/lib/python3.10/site-packages/click-8.0.4-py3.10.egg
Searching for toml==0.10.2
Best match: toml 0.10.2
Adding toml 0.10.2 to easy-install.pth file

Using /usr/lib/python3.10/site-packages
Searching for tomli==2.0.1
Best match: tomli 2.0.1
Adding tomli 2.0.1 to easy-install.pth file

Using /usr/lib/python3.10/site-packages
Finished processing dependencies for darker==1.4.2

@akaihola
Copy link
Owner

And with Arch as a non-root user with Python 3.10, again seems to work:

$ podman run --rm -it -v /home/akaihola/darker:/darker:rw archlinux bash
# useradd akaihola
# mkdir /home/akaihola
# chown akaihola. /home/akaihola
# pacman -Sy --noconfirm python-pip python-setuptools
# su akaihola
$ pip install darker
Defaulting to user installation because normal site-packages is not writeable
Collecting darker
  Downloading darker-1.4.2-py3-none-any.whl (84 kB)
     |████████████████████████████████| 84 kB 2.6 MB/s             
Requirement already satisfied: toml>=0.10.0 in /usr/lib/python3.10/site-packages (from darker) (0.10.2)
Collecting black>=21.5b1
  Downloading black-22.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 20.3 MB/s            
Collecting mypy-extensions>=0.4.3
  Downloading mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting pathspec>=0.9.0
  Downloading pathspec-0.9.0-py2.py3-none-any.whl (31 kB)
Requirement already satisfied: tomli>=1.1.0 in /usr/lib/python3.10/site-packages (from black>=21.5b1->darker) (2.0.1)
Collecting click>=8.0.0
  Downloading click-8.0.4-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 5.0 MB/s             
Collecting platformdirs>=2
  Downloading platformdirs-2.5.1-py3-none-any.whl (14 kB)
Installing collected packages: platformdirs, pathspec, mypy-extensions, click, black, darker
  WARNING: The scripts black, black-primer and blackd are installed in '/home/akaihola/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script darker is installed in '/home/akaihola/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed black-22.1.0 click-8.0.4 darker-1.4.2 mypy-extensions-0.4.3 pathspec-0.9.0 platformdirs-2.5.1
cp -r /darker ~ ; cd ~/darker && python3 setup.py install --user
running install
/usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3.10/site-packages/setuptools/command/easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
writing src/darker.egg-info/PKG-INFO
writing dependency_links to src/darker.egg-info/dependency_links.txt
writing entry points to src/darker.egg-info/entry_points.txt
writing requirements to src/darker.egg-info/requires.txt
writing top-level names to src/darker.egg-info/top_level.txt
reading manifest file 'src/darker.egg-info/SOURCES.txt'
adding license file 'LICENSE.rst'
writing manifest file 'src/darker.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/darker
creating build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/__init__.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/without_pygments.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/with_pygments.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/highlighting/lexers.py -> build/bdist.linux-x86_64/egg/darker/highlighting
copying build/lib/darker/linting.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/import_sorting.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/black_diff.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/__main__.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/__init__.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/verification.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/git.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/command_line.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/exceptions.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/concurrency.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/utils.py -> build/bdist.linux-x86_64/egg/darker
creating build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_main_revision.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_black_diff.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/helpers.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/__init__.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_verification.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_git.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_command_line.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_main_blacken_single_file.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_main.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_highlighting.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_difflib.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_config.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_chooser.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_concurrency.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_linting.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/conftest.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_diff.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_argparse_helpers.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_import_sorting.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/git_diff_example_output.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/tests/test_utils.py -> build/bdist.linux-x86_64/egg/darker/tests
copying build/lib/darker/help.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/argparse_helpers.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/version.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/diff.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/config.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/chooser.py -> build/bdist.linux-x86_64/egg/darker
copying build/lib/darker/black_compat.py -> build/bdist.linux-x86_64/egg/darker
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/without_pygments.py to without_pygments.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/with_pygments.py to with_pygments.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/highlighting/lexers.py to lexers.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/linting.py to linting.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/import_sorting.py to import_sorting.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/black_diff.py to black_diff.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/__main__.py to __main__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/verification.py to verification.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/git.py to git.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/command_line.py to command_line.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/exceptions.py to exceptions.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/concurrency.py to concurrency.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/utils.py to utils.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_main_revision.py to test_main_revision.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_black_diff.py to test_black_diff.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/helpers.py to helpers.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_verification.py to test_verification.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_git.py to test_git.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_command_line.py to test_command_line.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_main_blacken_single_file.py to test_main_blacken_single_file.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_main.py to test_main.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_highlighting.py to test_highlighting.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_difflib.py to test_difflib.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_config.py to test_config.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_chooser.py to test_chooser.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_concurrency.py to test_concurrency.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_linting.py to test_linting.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/conftest.py to conftest.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_diff.py to test_diff.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_argparse_helpers.py to test_argparse_helpers.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_import_sorting.py to test_import_sorting.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/git_diff_example_output.py to git_diff_example_output.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/tests/test_utils.py to test_utils.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/help.py to help.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/argparse_helpers.py to argparse_helpers.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/version.py to version.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/diff.py to diff.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/config.py to config.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/chooser.py to chooser.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/darker/black_compat.py to black_compat.cpython-310.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/darker.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/darker-1.4.2-py3.10.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing darker-1.4.2-py3.10.egg
Copying darker-1.4.2-py3.10.egg to /home/akaihola/.local/lib/python3.10/site-packages
Adding darker 1.4.2 to easy-install.pth file
Installing darker script to /home/akaihola/.local/bin

Installed /home/akaihola/.local/lib/python3.10/site-packages/darker-1.4.2-py3.10.egg
Processing dependencies for darker==1.4.2
Searching for black>=21.5b1
Reading https://pypi.org/simple/black/
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release
  warnings.warn(
Downloading https://files.pythonhosted.org/packages/b3/4b/e490650ee69bd53bad29956969346fa9d345422eb9ed9e201ec9533688eb/black-22.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=e2f69158a7d120fd641d1fa9a921d898e20d52e44a74a6fbbcc570a62a6bc8ab
Best match: black 22.1.0
Processing black-22.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Installing black-22.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl to /home/akaihola/.local/lib/python3.10/site-packages
Adding black 22.1.0 to easy-install.pth file
Installing black script to /home/akaihola/.local/bin
Installing black-primer script to /home/akaihola/.local/bin
Installing blackd script to /home/akaihola/.local/bin

Installed /home/akaihola/.local/lib/python3.10/site-packages/black-22.1.0-py3.10-linux-x86_64.egg
Searching for platformdirs>=2
Reading https://pypi.org/simple/platformdirs/
Downloading https://files.pythonhosted.org/packages/de/de/d8b9da351517c3dece273224522d4714cfdb9a89e2e6f7f7f054a340cc2b/platformdirs-2.5.1-py3-none-any.whl#sha256=bcae7cab893c2d310a711b70b24efb93334febe65f8de776ee320b517471e227
Best match: platformdirs 2.5.1
Processing platformdirs-2.5.1-py3-none-any.whl
Installing platformdirs-2.5.1-py3-none-any.whl to /home/akaihola/.local/lib/python3.10/site-packages
Adding platformdirs 2.5.1 to easy-install.pth file

Installed /home/akaihola/.local/lib/python3.10/site-packages/platformdirs-2.5.1-py3.10.egg
Searching for pathspec>=0.9.0
Reading https://pypi.org/simple/pathspec/
Downloading https://files.pythonhosted.org/packages/42/ba/a9d64c7bcbc7e3e8e5f93a52721b377e994c22d16196e2b0f1236774353a/pathspec-0.9.0-py2.py3-none-any.whl#sha256=7d15c4ddb0b5c802d161efc417ec1a2558ea2653c2e8ad9c19098201dc1c993a
Best match: pathspec 0.9.0
Processing pathspec-0.9.0-py2.py3-none-any.whl
Installing pathspec-0.9.0-py2.py3-none-any.whl to /home/akaihola/.local/lib/python3.10/site-packages
Adding pathspec 0.9.0 to easy-install.pth file

Installed /home/akaihola/.local/lib/python3.10/site-packages/pathspec-0.9.0-py3.10.egg
Searching for mypy-extensions>=0.4.3
Reading https://pypi.org/simple/mypy-extensions/
Downloading https://files.pythonhosted.org/packages/5c/eb/975c7c080f3223a5cdaff09612f3a5221e4ba534f7039db34c35d95fa6a5/mypy_extensions-0.4.3-py2.py3-none-any.whl#sha256=090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d
Best match: mypy-extensions 0.4.3
Processing mypy_extensions-0.4.3-py2.py3-none-any.whl
Installing mypy_extensions-0.4.3-py2.py3-none-any.whl to /home/akaihola/.local/lib/python3.10/site-packages
Adding mypy-extensions 0.4.3 to easy-install.pth file

Installed /home/akaihola/.local/lib/python3.10/site-packages/mypy_extensions-0.4.3-py3.10.egg
Searching for click>=8.0.0
Reading https://pypi.org/simple/click/
Downloading https://files.pythonhosted.org/packages/4a/a8/0b2ced25639fb20cc1c9784de90a8c25f9504a7f18cd8b5397bd61696d7d/click-8.0.4-py3-none-any.whl#sha256=6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1
Best match: click 8.0.4
Processing click-8.0.4-py3-none-any.whl
Installing click-8.0.4-py3-none-any.whl to /home/akaihola/.local/lib/python3.10/site-packages
Adding click 8.0.4 to easy-install.pth file

Installed /home/akaihola/.local/lib/python3.10/site-packages/click-8.0.4-py3.10.egg
Searching for toml==0.10.2
Best match: toml 0.10.2
Adding toml 0.10.2 to easy-install.pth file

Using /usr/lib/python3.10/site-packages
Searching for tomli==2.0.1
Best match: tomli 2.0.1
Adding tomli 2.0.1 to easy-install.pth file

Using /usr/lib/python3.10/site-packages
Finished processing dependencies for darker==1.4.2

@akaihola
Copy link
Owner

Unfortunately I can't reproduce this on Arch or Ubuntu, see comments above. Maybe you're trying to install Darker in a different way, or your system has something special which prevents installation?

Can you install other packages normally, like for example Black?

@chmouel
Copy link
Contributor Author

chmouel commented Mar 26, 2022

@akaihola you are totally right as I have tried on an another clean system, I don't have this issue. It seems that I have that error on some packages while installing with --user (with arch 3.10) and this doesn't seem to be specific to darker but to my system.

reading around the internet it seems to be an issue with some previous installs somewhere of a egg-info lingering on the system :

pypa/pip#9313

I'll try to deep down but again thanks for the help and sorry wasting your time for an issue that is not darker specific,

@akaihola
Copy link
Owner

an issue that is not darker specific

No problem! We've added one more good hit for anyone searching for the same issue in the future. Maybe post your solution here once you get it solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants