You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, ctypesgen appears to be unable to create the bindings file on Windows (see ctypesgen/ctypesgen#138).
This means that Windows users cannot easily install pypdfium2 from git main, unfortunately. (Using the release wheels on PyPI will works, of course. This issue only applies if you want to install the latest state of the repository from source.)
In the meantime, I have attached the current bindings file so that users may inject it manually: _pypdfium.py.txt
Then it should be possible to create and install a wheel somewhat like this:
@echooffREM Prerequisite: You are in the `pypdfium/` directoryREM Define the target platform (in this case, Windows 64-bit amd/intel)setPYP_TARGET_PLATFORM="windows_x64"REM Download binary
python3 platform_setup\update_pdfium.py -p %PYP_TARGET_PLATFORM%REM Now you need to manually copy the attached bindings file into `data/%PYP_TARGET_PLATFORM%`REM (Remember to remove the `.txt` extension which was only for the upload to GitHub)REM Build the wheel, according to the target platform environment variable
python3 -m build -n -x --wheel
REM Finally, install it (replace `WHEELNAME_HERE.whl` with the corresponding file name)
python3 -m pip install dist/WHEELNAME_HERE.whl
REM Optionally, run the test suite
python3 -m pytest tests/
The text was updated successfully, but these errors were encountered:
At the moment, ctypesgen appears to be unable to create the bindings file on Windows (see ctypesgen/ctypesgen#138).
This means that Windows users cannot easily install pypdfium2 from
git main
, unfortunately. (Using the release wheels on PyPI will works, of course. This issue only applies if you want to install the latest state of the repository from source.)In the meantime, I have attached the current bindings file so that users may inject it manually: _pypdfium.py.txt
Then it should be possible to create and install a wheel somewhat like this:
The text was updated successfully, but these errors were encountered: