anki/pip/stubs/extendsitepkgs.py
Damien Elmes d120cd7f8a update to latest mypy
mypy's move to external types-* packages is a PITA, as it requires them
to be installed in site-packages, and provides no way to specify a custom
site-packages folder, necessitating extra scripts to mock the
site-packages path, and copy+rename the stub packages into a separate
folder.
2021-06-16 16:04:59 +10:00

11 lines
258 B
Python

# Copyright: Ankitects Pty Ltd and contributors
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import os
from mypy import sitepkgs
pkgs = sitepkgs.getsitepackages()
pkgs.append(os.getenv("EXTRA_SITE_PACKAGES"))
print(pkgs)