-
Notifications
You must be signed in to change notification settings - Fork 30
gftools and virtual environment #74
Comments
You should have a virtualenv for each project since you then have individual control over each project's dependencies. The virtualenv docs are pretty stellar, https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment |
All upstream repos should include installation instructions in the README e.g https://github.com/TypeNetwork/Roboto#install. Also, you shouldn't commit the virtualenv to version control, only a requirements.txt file. Perhaps we should just add a few notes to https://github.com/googlefonts/gf-docs/tree/master/Spec#upstream-repos? I don't want us to write too much about this section since there are many tutorials and official docs that cover dependency management better than we can. |
OK (with an install process updated for python 3 probably). |
I'm a bit out of the loop, but I'm reasonably happy with the build script I wrote here: https://github.com/eliheuer/blue-ocean/blob/main/sources/build.sh This script builds, sets up, and removes a Python 3 virtual environment as part of the script. My goal was to make the build process as easy as possible for new users and that the whole process should happen in "one step". There is even an optional |
Thanks Eli ! |
We also have @graphicore's packager arriving soon which will eliminate the need for users to manually pr to google/fonts. |
Right, but you got to commit and push the fonts to the upstream to make a proper PR, because we now record the commit hash in METADATA.pb. For local "testing" you'll still need to make a commit locally. |
I would like to add informations in the gf docs about how to handle gftools/fontmake etc. with a virtual environment. I have a poor experience when it comes to that, and when I tried, I had conflicts with tools already installed locally. How do you proceed yourself? I saw in some threads that some of you are using one venv per project for example.
The text was updated successfully, but these errors were encountered: