fix(pygments)

closes #4113
This commit is contained in:
Jacob Heider 2023-11-18 15:33:32 -05:00 committed by Jacob Heider
parent bfe3e5cf52
commit 6bd1cee2f3

View file

@ -9,8 +9,17 @@ dependencies:
python.org: ~3.11
build:
script: |
python-venv.sh {{prefix}}/bin/pygmentize
script:
- python-venv.sh {{prefix}}/bin/pygmentize
# Rename Pygments to pygments because python
# and macOS can't agree on case sensitivity.
- run: |
if [ -d Pygments ]; then
mv Pygments foo
mv foo pygments
fi
working-directory: ${{prefix}}/venv/lib/python3.11/site-packages
if: darwin
provides:
- bin/pygmentize
@ -22,4 +31,3 @@ test:
script: |
mv $FIXTURE test.py
pygmentize -f html -o test.html test.py