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

Fontbakery install blocked by latest cmarkgfm #4957

Open
justinpenner opened this issue Jan 6, 2025 · 0 comments
Open

Fontbakery install blocked by latest cmarkgfm #4957

justinpenner opened this issue Jan 6, 2025 · 0 comments

Comments

@justinpenner
Copy link

Observed behaviour

It seems the latest version of cmarkgfm==2024.11.20 does not have wheels for macOS, and it fails to build at least on my system (M1 running 12.6.5).

python3 -m venv venv
source venv/bin/activate
pip install fontbakery
Building wheels for collected packages: cmarkgfm
  Building wheel for cmarkgfm (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for cmarkgfm (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [30 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.macosx-10.9-universal2-cpython-312/cmarkgfm
      copying src/cmarkgfm/__init__.py -> build/lib.macosx-10.9-universal2-cpython-312/cmarkgfm
      copying src/cmarkgfm/build_cmark.py -> build/lib.macosx-10.9-universal2-cpython-312/cmarkgfm
      copying src/cmarkgfm/cmark.py -> build/lib.macosx-10.9-universal2-cpython-312/cmarkgfm
      running egg_info
      writing src/cmarkgfm.egg-info/PKG-INFO
      writing dependency_links to src/cmarkgfm.egg-info/dependency_links.txt
      writing requirements to src/cmarkgfm.egg-info/requires.txt
      writing top-level names to src/cmarkgfm.egg-info/top_level.txt
      reading manifest file 'src/cmarkgfm.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.inc' under directory 'third_party/cmark/extensions'
      adding license file 'LICENSE.txt'
      writing manifest file 'src/cmarkgfm.egg-info/SOURCES.txt'
      copying src/cmarkgfm/cmark.cffi.h -> build/lib.macosx-10.9-universal2-cpython-312/cmarkgfm
      copying src/cmarkgfm/cmark_module.h -> build/lib.macosx-10.9-universal2-cpython-312/cmarkgfm
      running build_ext
      generating cffi module 'build/temp.macosx-10.9-universal2-cpython-312/cmarkgfm._cmark.c'
      creating build/temp.macosx-10.9-universal2-cpython-312
      building 'cmarkgfm._cmark' extension
      creating build/temp.macosx-10.9-universal2-cpython-312/build/temp.macosx-10.9-universal2-cpython-312
      creating build/temp.macosx-10.9-universal2-cpython-312/third_party/cmark/extensions
      creating build/temp.macosx-10.9-universal2-cpython-312/third_party/cmark/src
      /Library/Developer/CommandLineTools/usr/bin/c++ -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/private/var/folders/44/2nsdcqjx7hn8rnnqs2lqc5s00000gp/T/pip-install-n0jqje7j/cmarkgfm_9a4f3abe7fc7431db5b9318819c296ac/third_party/cmark/src -I/private/var/folders/44/2nsdcqjx7hn8rnnqs2lqc5s00000gp/T/pip-install-n0jqje7j/cmarkgfm_9a4f3abe7fc7431db5b9318819c296ac/third_party/cmark/extensions -I/private/var/folders/44/2nsdcqjx7hn8rnnqs2lqc5s00000gp/T/pip-install-n0jqje7j/cmarkgfm_9a4f3abe7fc7431db5b9318819c296ac/generated/unix -I/Users/justinpenner/Type/Tools/fontbakery/venv/include -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c build/temp.macosx-10.9-universal2-cpython-312/cmarkgfm._cmark.c -o build/temp.macosx-10.9-universal2-cpython-312/build/temp.macosx-10.9-universal2-cpython-312/cmarkgfm._cmark.o -std=c99
      clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
      error: invalid argument '-std=c99' not allowed with 'C++'
      error: command '/Library/Developer/CommandLineTools/usr/bin/c++' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cmarkgfm
Failed to build cmarkgfm
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cmarkgfm)

Workaround

For anyone else running into this issue right now, you can install the previous version of cmarkgfm, then install fontbakery:

pip install cmarkgfm==2024.1.14
pip install fontbakery

I also filed an issue at theacodes/cmarkgfm#71, but maybe this can also be fixed by excluding cmarkgfm==2024.1.14 from Fontbakery's dependencies?

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

No branches or pull requests

1 participant