Package: inkt
ManimPangoManimPangois a C binding forPangousingCython, which is internally used inManimto render (non-LaTeX) text.INSTALLInstallingManimPangois super easy, just usepip. It ismanimpangoin PyPi.pipinstallmanimpangoForLinux Users, there are no Wheels. You must have a C compiler as well asPangoand its dependencies along with thePangodevelopment headers. SeeBUILDINGfor more information.WORKFLOW SETUP / CONTRIBUTINGTo make it easier for developers to contribute, we have a pre-commit workflow that will check forblackformatting andflakechecking.pipinstallpre-commit
pre-commitinstallBUILDINGLinux/MacOSFor buildingManimPango, you needa C compilerPython's development headerspkg-configPangoalong with its development headers and its dependencies.If you are on MacOS, you can usebrewto install those. UsingMacPortsis also possible, but their version ofPangois old and will probably not be updated in the near future.brewinstallpangopkg-configIf you are on Linux, you can use a system package manager to do so. For example, if you are on Debian based system, you can useaptaptinstalllibpango1.0-devpkg-configpython3-devArch Linux:pacman -S pango pkgconfFedora:dnf install pango-devel pkg-config python3-develOr similar in your system's package manager.UsingtararchivesIf you don't want to contribute to this repository, you can use the tar archives published in PyPi, or just usepipto install usingpipinstallmanimpango--no-binary:all:Note:pipby default uses wheels, so make sure to pass the--no-binaryparameter.Usinggitclones / ContributingPlease remember to do this inside your virtual environment, if you want to use yourManimpangowithManim.python-mvenv./venvsourcevenv/bin/activate# Linux/macOSvenv\Scripts\activate# WindowsIf you are using a clone of this repository, you will needCythonwhich can be easily installed usingpip:pipinstallCythonAfter that you can usepipto install the clone with the following command:pipinstall-e.
pipinstall-rrequirements-dev.txt.Next, run the setup script:pythonsetup.pybuild_ext-iAfter installation is complete, you should be able to run pytest:pytestYou will need to this way if you want tocontributetoManimPango.Contributing with WindowsIf you are a normal user, don't read this, you have wheels which you can just install directly using pip.If you want to contribute toManimPangoand you are on Windows, this section is for you.As Windows does not include a C compiler by default, you will first need to install one. You have two choices:MinGW/Msys2Visual StudioMinGW/Msys2DownloadMSYS2from the download link provided on their pagehttps://www.msys2.org/#installationand install it according to their instructions.Once you haveMSYS2installed,  it offers you three different shells: theMinGW32shell, theMinGW64shell andMSYSshell. In order for the following steps to work, you have to open theMSYS2 MinGW64shell (you can search for this). Small hint: it has a blue color logo.Run the following commands to install Python, Pango, Cython, Numpy, Scipy, Pillow, Pycairo and ffmpegpacman-Smingw-w64-x86_64-python
pacman-Smingw-w64-x86_64-python-pip
pacman-Smingw-w64-x86_64-pango
pacman-Smingw-w64-x86_64-cython
pacman-Smingw-w64-x86_64-python-numpy
pacman-Smingw-w64-x86_64-python-scipy
pacman-Smingw-w64-x86_64-python-pillow
pacman-Smingw-w64-x86_64-python-cairo
pacman-Smingw-w64-x86_64-ffmpegStill in the same shell, installManimusingpip install manim.Finally, get your clone ofManimPango,cdinto that directory and then runpip install -e ..NoteYou can't use it with your regular Python version. It will cause weird errors if you do so. For working withManimPango, you must be inside theMSYS2 MINGW64 shell.You can then usemaniminside that shell, to runManim.Hint: If you want to try out Python interactively, you can openidleusing the commandpython -m idlelibinside that shell.Visual StudioFirst, install Visual Studio as specified inhttps://wiki.python.org/moin/WindowsCompilers. Possibly Visual Studio Build Tools 2019 with Windows10 SDK.Then run the script atpacking/download_dlls.py. This will get aPangobuild along withpkg-configand install it atC:\cibw\vendor. AddC:\cibw\vendor\binandC:\cibw\vendor\pkg-config\binto PATH.Note:You can change the install location by editing line 24 of the filepacking/download_dlls.py.Then set an environment variablePKG_CONFIG_PATH=C:\cibw\vendor\lib\pkgconfig.Then you can install Cython usingpipinstallCythonFinally, you can install your localManimPangoclone just like any other python package by typing:pipinstall.Important: You have to to usehttps://docs.python.org/3/library/os.html#os.add_dll_directorybefore runningManimPango. Alternatively, you need to copy thedllatC:\cibw\vendor\binto the folder whereManimPangois compiled.  This is applicable for Python 3.8 and above.importosos.add_dll_directory('C:\cibw\vendor\bin')Code of ConductOur full code of conduct, and how we enforce it, can be read onour website.LicenseThis project is licensed under MIT License. The wheels distributed on PyPI contains compiled version of Pango and Cairo subject to terms of the GNU LGPL and other licenses. Consult the licenses of each library for more informations.