Comments (3)
yeah, a ./scripts
folder is a good idea. Makefiles are super simple with basic usage, so nothing fancy to learn. This is the one I was using just to make dev easier, and you can see how you are basically just merging the command-line scripts into one file and giving them shorthand names. the only fancy thing is the lines that have dependencies, so release: clean update-binaries build-all
means run clean, update-binaries and build-all before running the check-wheel-contents script
release: clean update-binaries build-all
check-wheel-contents dist/*
build-all: build-darwin-arm64 build-darwin-x64 build-linux-arm32 build-linux-arm64 \
build-win-x64 build-win-x86 build-linux-x64
build-darwin-x64:
python3 setup_darwin_x64.py bdist_wheel
build-darwin-arm64:
python3 setup_darwin_arm64.py bdist_wheel
build-linux-x64:
python3 setup_linux_x64.py bdist_wheel
build-linux-arm64:
python3 setup_linux_arm64.py bdist_wheel
build-linux-arm32:
python3 setup_linux_arm32.py bdist_wheel
build-win-x64:
python3 setup_windows_x64.py bdist_wheel
build-win-x86:
python3 setup_windows_x86.py bdist_wheel
update-binaries:
python3 update.py
clean:
-rm -r dist
-rm -r build
-rm -r data/*
-touch data/.gitkeep
-rm -r src/pypdfium2.egg-info/
-rm -r __pycache__
-rm -r src/pypdfium2/__pycache__
-unlink src/pypdfium2/_pypdfium.py
-unlink src/pypdfium2/pdfium
-unlink src/pypdfium2/pdfium.dll
-unlink src/pypdfium2/pdfium.dylib
from pypdfium2.
The clean
, release
and setup_all
scripts could possibly be merged into a Makefile. However, I never had to do with Makefiles so far and don't know the syntax... We could also move the scripts into an own directory to shorten the root folder content.
from pypdfium2.
Oh yes, that looks good.
from pypdfium2.
Related Issues (20)
- conda: consider reading pdfium-binaries version from system?
- Installation failures within a Docker container, problem with ctypesgen? HOT 3
- Parsing special characters leading to inconsistency among different machines HOT 6
- musl binary size concerns
- pdfium fails to load in PHP on Almalinux 8.9 (PartitionAlloc check failure) HOT 8
- Buffer size mismatch when calling `get_text_range` HOT 14
- page.set_rotation() Over Rotating Some Pages
- page.render function returns an unexpected image HOT 7
- PdfDocument.get_page is non-thread-safe HOT 1
- Got different result of "pdfium_page.render()" on MacOS and Linux HOT 1
- Extracting text with special characters HOT 7
- expose more details in PdfiumError HOT 3
- Weird "PDFium: Data format error" when using pypdfium2 in Celery task. HOT 11
- The render func does not render form fields. HOT 4
- pypdfium2 on S390x (ubuntu22.04) HOT 6
- After get_text_bounded, cannot MOVE file HOT 2
- Install with reference bindings broken
- Extract form-filling values from a PDF document that supports Acroform HOT 1
- 当,pdf某一页异常的时候,renderer 到那一页后就会一直卡顿 HOT 2
- Adapt setup code to `bdist_wheel` relocation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pypdfium2.