wroberts / pydaedalus

A Python wrapper of the Daedalus maze generator.
GNU General Public License v2.0
22 stars 5 forks source link

Installation is broken via pip #3

Open RemusRomulus opened 1 year ago

RemusRomulus commented 1 year ago

It was recommended by pip that I install using this command: python -m pip install --use-pep517 pydaedalus This did not correct major errors I am having on install. Currently the wheel is not building.

This is the command and output:

PS D:\Commerce\A&XB_Designs\PROJECTS\IMPOSSIBLE_MAZE_BOOK_1> python -m pip install --use-pep517 pydaedalus
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
Collecting pydaedalus
  Using cached pydaedalus-0.1.5.tar.gz (400 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pydaedalus
  Building wheel for pydaedalus (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pydaedalus (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-310
      creating build\lib.win-amd64-cpython-310\daedalus
      copying daedalus\compat.py -> build\lib.win-amd64-cpython-310\daedalus
      copying daedalus\__init__.py -> build\lib.win-amd64-cpython-310\daedalus
      creating build\lib.win-amd64-cpython-310\daedalus\test
      copying daedalus\test\test_maze.py -> build\lib.win-amd64-cpython-310\daedalus\test
      copying daedalus\test\__init__.py -> build\lib.win-amd64-cpython-310\daedalus\test
      running build_ext
      building 'daedalus._maze' extension
      creating build\temp.win-amd64-cpython-310
      creating build\temp.win-amd64-cpython-310\Release
      creating build\temp.win-amd64-cpython-310\Release\daedalus
      creating build\temp.win-amd64-cpython-310\Release\daedalus\src
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Idaedalus/src -IC:\Python310\include -IC:\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019
\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Fil
es (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpdaedalus/_maze.cpp /Fobuild\temp.win-amd64-cpython-310\Release\daedalus/_maze.obj -std=c++11 -Wno-error=format-security
      cl : Command line error D8021 : invalid numeric argument '/Wno-error=format-security'
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pydaedalus
Failed to build pydaedalus
ERROR: Could not build wheels for pydaedalus, which is required to install pyproject.toml-based projects
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)