CallocGD/PyBroma

fails to install

Closed this issue · 6 comments

hi! installing pybroma gives an error, i have windows 11 and python 3.9

❯❯ ~  20:31 C:\Users\jaan1\AppData\Local\Programs\Python\Python39\Scripts\pip.exe install https://github.com/CallocGD/PyBroma/archive/refs/heads/main.zip
Collecting https://github.com/CallocGD/PyBroma/archive/refs/heads/main.zip
  Using cached https://github.com/CallocGD/PyBroma/archive/refs/heads/main.zip
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pybroma
  Building wheel for pybroma (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pybroma (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [76 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-39
      creating build\lib.win-amd64-cpython-39\pybroma
      copying pybroma\codewriter.py -> build\lib.win-amd64-cpython-39\pybroma
      copying pybroma\external.py -> build\lib.win-amd64-cpython-39\pybroma
      copying pybroma\platforms.py -> build\lib.win-amd64-cpython-39\pybroma
      copying pybroma\visitor.py -> build\lib.win-amd64-cpython-39\pybroma
      copying pybroma\__init__.py -> build\lib.win-amd64-cpython-39\pybroma
      running egg_info
      writing pybroma.egg-info\PKG-INFO
      writing dependency_links to pybroma.egg-info\dependency_links.txt
      writing top-level names to pybroma.egg-info\top_level.txt
      reading manifest file 'pybroma.egg-info\SOURCES.txt'
      adding license file 'LICENSE'
      writing manifest file 'pybroma.egg-info\SOURCES.txt'
      C:\Users\jaan1\AppData\Local\Temp\pip-build-env-s1zwlqmu\overlay\Lib\site-packages\setuptools\command\build_py.py:215: _Warning: Package 'pybroma.include' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'pybroma.include' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'pybroma.include' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'pybroma.include' to be distributed and are
              already explicitly excluding 'pybroma.include' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      copying pybroma\PyBroma.cpp -> build\lib.win-amd64-cpython-39\pybroma
      copying pybroma\PyBroma.pyi -> build\lib.win-amd64-cpython-39\pybroma
      creating build\lib.win-amd64-cpython-39\pybroma\include
      copying pybroma\include\helper.hpp -> build\lib.win-amd64-cpython-39\pybroma\include
      copying pybroma\include\helper.hpp -> build\lib.win-amd64-cpython-39\pybroma\include
      running build_ext
      building 'pybroma.PyBroma' extension
      creating build\temp.win-amd64-cpython-39
      creating build\temp.win-amd64-cpython-39\Release
      creating build\temp.win-amd64-cpython-39\Release\pybroma
      creating build\temp.win-amd64-cpython-39\Release\pybroma\include
      creating build\temp.win-amd64-cpython-39\Release\pybroma\include\Broma
      creating build\temp.win-amd64-cpython-39\Release\pybroma\include\Broma\src
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ipybroma -Ipybroma/include -Iprbroma/include/Broma -Ipybroma/include/broma/include -Ipybroma/include/Broma/ghc -Ipybroma/include/Broma/PEGTL-3.2.7/include -Iprbroma/include/Broma/PEGTL-3.2.7/include/tao -Iprbroma/include/Broma/PEGTL-3.2.7/include/tao/pegtl -Iprbroma/include/Broma/PEGTL-3.2.7/include/tao/pegtl/internal -Iprbroma/include/Broma/PEGTL-3.2.7/include/tao/pegtl/contrib -Ipybroma/include/Broma/src -IC:\Users\jaan1\AppData\Local\Programs\Python\Python39\include -IC:\Users\jaan1\AppData\Local\Programs\Python\Python39\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tppybroma/PyBroma.cpp /Fobuild\temp.win-amd64-cpython-39\Release\pybroma/PyBroma.obj /O2 /std:c++17
      PyBroma.cpp
      pybroma/PyBroma.cpp(1289): fatal error C1083: ЌҐ г¤ Ґвбп ®вЄалвм д ©« ўЄ«о祭ЁҐ: include/broma/include/ast.hpp: No such file or directory,
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\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 pybroma
Failed to build pybroma
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pybroma)

Probably the zipped repo doesnt have the broma submodule cloned?

Probably the zipped repo doesnt have the broma submodule cloned?

@JaanDev I would think that would be the case sorry I didn't get back sooner. I'm a little busy this summer with other stuff and I also was trying to take a break. I think if you could make me a pull request for that it would be very helpful since I am trying to keep this repo alive and working while I'm off doing other things in my life I'll be sure to check back regularly if you decide that you would like to contribute.

Ok, that's fine! I will try to fix this issue and send a pr when i have time

Hi! I've just sent a pr!

@JaanDev Merged it

yay