Skip to content

Instantly share code, notes, and snippets.

@mcdonc
Created December 9, 2023 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcdonc/872a16354d1cd8219a188bc443e0a997 to your computer and use it in GitHub Desktop.
Save mcdonc/872a16354d1cd8219a188bc443e0a997 to your computer and use it in GitHub Desktop.
python3.11-vncdo build failure
❯ nix log /nix/store/8kivy1daix570b3g6yky3zf9cvsdmxa6-python3.11-vncdo-1.1.0.drv
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/8kivy1daix570b3g6yky3zf9cvsdmxa6-python3.11-vncdo-1.1.0.drv^*'
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/3wnkcg3zdqsj7yhcacwi5nzn03xvr2sd-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/vncdotool/rfb.py
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/vncdotool
copying vncdotool/command.py -> build/lib/vncdotool
copying vncdotool/__init__.py -> build/lib/vncdotool
copying vncdotool/loggingproxy.py -> build/lib/vncdotool
copying vncdotool/rfb.py -> build/lib/vncdotool
copying vncdotool/client.py -> build/lib/vncdotool
copying vncdotool/api.py -> build/lib/vncdotool
/nix/store/y8yq448xka665bqyd5gvdhajqdbsnyys-python3.11-setuptools-68.2.2/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/vncdotool
copying build/lib/vncdotool/loggingproxy.py -> build/bdist.linux-x86_64/wheel/vncdotool
copying build/lib/vncdotool/__init__.py -> build/bdist.linux-x86_64/wheel/vncdotool
copying build/lib/vncdotool/command.py -> build/bdist.linux-x86_64/wheel/vncdotool
copying build/lib/vncdotool/api.py -> build/bdist.linux-x86_64/wheel/vncdotool
copying build/lib/vncdotool/rfb.py -> build/bdist.linux-x86_64/wheel/vncdotool
copying build/lib/vncdotool/client.py -> build/bdist.linux-x86_64/wheel/vncdotool
running install_egg_info
running egg_info
creating vncdotool.egg-info
writing vncdotool.egg-info/PKG-INFO
writing dependency_links to vncdotool.egg-info/dependency_links.txt
writing entry points to vncdotool.egg-info/entry_points.txt
writing requirements to vncdotool.egg-info/requires.txt
writing top-level names to vncdotool.egg-info/top_level.txt
writing manifest file 'vncdotool.egg-info/SOURCES.txt'
reading manifest file 'vncdotool.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
writing manifest file 'vncdotool.egg-info/SOURCES.txt'
Copying vncdotool.egg-info to build/bdist.linux-x86_64/wheel/vncdotool-1.1.0-py3.11.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/vncdotool-1.1.0.dist-info/WHEEL
creating 'dist/vncdotool-1.1.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'vncdotool/__init__.py'
adding 'vncdotool/api.py'
adding 'vncdotool/client.py'
adding 'vncdotool/command.py'
adding 'vncdotool/loggingproxy.py'
adding 'vncdotool/rfb.py'
adding 'vncdotool-1.1.0.dist-info/LICENSE.txt'
adding 'vncdotool-1.1.0.dist-info/METADATA'
adding 'vncdotool-1.1.0.dist-info/WHEEL'
adding 'vncdotool-1.1.0.dist-info/entry_points.txt'
adding 'vncdotool-1.1.0.dist-info/top_level.txt'
adding 'vncdotool-1.1.0.dist-info/zip-safe'
adding 'vncdotool-1.1.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Finished executing setuptoolsBuildPhase
@nix { "action": "setPhase", "phase": "installPhase" }
installing
Executing pypaInstallPhase
Successfully installed vncdotool-1.1.0-py3-none-any.whl
Finished executing pypaInstallPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/8i3x11cy7vwdrv7dshdaxh2bbm935slp-python3.11-vncdo-1.1.0
checking for references to /build/ in /nix/store/8i3x11cy7vwdrv7dshdaxh2bbm935slp-python3.11-vncdo-1.1.0...
patching script interpreter paths in /nix/store/8i3x11cy7vwdrv7dshdaxh2bbm935slp-python3.11-vncdo-1.1.0
stripping (with command strip and flags -S -p) in /nix/store/8i3x11cy7vwdrv7dshdaxh2bbm935slp-python3.11-vncdo-1.1.0/lib /nix/store/8i3x11cy7vwdrv7dshdaxh2bbm935slp-python3.11-vncdo-1.1.0/bin
shrinking RPATHs of ELF executables and libraries in /nix/store/dyql50020jkzfcvy1bpsfjr6q9x53am8-python3.11-vncdo-1.1.0-dist
checking for references to /build/ in /nix/store/dyql50020jkzfcvy1bpsfjr6q9x53am8-python3.11-vncdo-1.1.0-dist...
patching script interpreter paths in /nix/store/dyql50020jkzfcvy1bpsfjr6q9x53am8-python3.11-vncdo-1.1.0-dist
Rewriting #!/nix/store/qp5zys77biz7imbk6yy85q5pdv7qk84j-python3-3.11.6/bin/python3.11 to #!/nix/store/qp5zys77biz7imbk6yy85q5pdv7qk84j-python3-3.11.6
wrapping `/nix/store/8i3x11cy7vwdrv7dshdaxh2bbm935slp-python3.11-vncdo-1.1.0/bin/vnclog'...
Rewriting #!/nix/store/qp5zys77biz7imbk6yy85q5pdv7qk84j-python3-3.11.6/bin/python3.11 to #!/nix/store/qp5zys77biz7imbk6yy85q5pdv7qk84j-python3-3.11.6
wrapping `/nix/store/8i3x11cy7vwdrv7dshdaxh2bbm935slp-python3.11-vncdo-1.1.0/bin/vncdo'...
Rewriting #!/nix/store/qp5zys77biz7imbk6yy85q5pdv7qk84j-python3-3.11.6/bin/python3.11 to #!/nix/store/qp5zys77biz7imbk6yy85q5pdv7qk84j-python3-3.11.6
wrapping `/nix/store/8i3x11cy7vwdrv7dshdaxh2bbm935slp-python3.11-vncdo-1.1.0/bin/vncdotool'...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "installCheckPhase" }
running install tests
no Makefile or custom installCheckPhase, doing nothing
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
pythonImportsCheckPhase
Executing pythonImportsCheckPhase
@nix { "action": "setPhase", "phase": "setuptoolsCheckPhase" }
setuptoolsCheckPhase
Executing setuptoolsCheckPhase
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
/nix/store/y8yq448xka665bqyd5gvdhajqdbsnyys-python3.11-setuptools-68.2.2/lib/python3.11/site-packages/setuptools/command/test.py:193: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
ir_d = dist.fetch_build_eggs(dist.install_requires)
/nix/store/qp5zys77biz7imbk6yy85q5pdv7qk84j-python3-3.11.6/bin/python3.11: No module named pip
error: Command '['/nix/store/qp5zys77biz7imbk6yy85q5pdv7qk84j-python3-3.11.6/bin/python3.11', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/build/tmpnjomytwz', '--quiet', 'pycryptodomex']' returned non-zero exit status>
@mcdonc
Copy link
Author

mcdonc commented Dec 9, 2023

❯ git diff
diff --git a/pkgs/development/python-modules/vncdo/default.nix b/pkgs/development/python-modules/vncdo/default.nix
index b6d12a67185c..18689aae81ab 100644
--- a/pkgs/development/python-modules/vncdo/default.nix
+++ b/pkgs/development/python-modules/vncdo/default.nix
@@ -26,7 +26,7 @@ buildPythonPackage rec {
ptyprocess
];

  • doCheck = !isPy27;

@mcdonc
Copy link
Author

mcdonc commented Dec 9, 2023

  overlays = (self: super: {
    python311 = super.python311.override {
      packageOverrides = pyself: pysuper: {
        vncdo = pysuper.vncdo.overrideAttrs (_: {
          setuptoolsCheckPhase = "true";
          doCheck = false;
        });
      };
    };
  });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment