||![Test and Build]
A standalone version of [AFDKO]’s
**NOTE**: as of August 2019, only Python 3.6 or later is supported.
Building and running
This repository currently consists of a core autohinter written in C, a
Python C extension providing an interface to it, and helper Python code.
To build the C extension:
python setup.py build
To install the C extension and the helper scripts globally:
pip install -r requirements.txt .
Alternatively to install them for the current user:
pip install -r requirements.txt --user .
The autohinter can be used by running:
To build just the `autohintexe` binary:
python setup.py build_exe
We have a test suite that can be run with:
For standard debugging, build with:
python setup.py build --debug
It is also possible to build a debug version with [AddressSanitizer]
("ASan") support (currently _for Mac OS X only_) with:
python setup.py build --asan
pip install .
Once it is installed, you can use the `util/launch-asan.sh` shell script to
launch a Python process that invokes the ASan libraries needed for
debugging. Attach Xcode the launched process, then execute code in the
process that triggers memory usage problems and wait for ASan to do its
NOTE: be sure to build and install `psautohint` as described above; using
other techniques such as `python setup.py install` will cause a re-build
_without_ ASan and debug support, which won't work.
Configuration Switches (platform-specific settings discarded)
PY310 OFF Build using Python 3.10
PY39 ON Build using Python 3.9
Package Dependencies by Type
Distribution File Information
ff2529dfd7cc58cf8b709714b9abd3468354742f18c1a140eb252e18f41a51d4 233414 psautohint-2.3.1.zip
Ports that require python-psautohint:py39