Comments (6)
@Korijn @almarklein the branch has been merged in. The new hook-api is "live" in development. 4.0 should be released before lockdown is over (So should 4.1 for that matter).
from wgpu-py.
I just realized this has probably gone to production a while ago. We can test and close this :)
from wgpu-py.
Updated first comment to keep track of progress.
from wgpu-py.
@Korijn @almarklein the branch has been merged in. The new hook-api is "live" in development. 4.0 should be released before lockdown is over (So should 4.1 for that matter).
Thanks for the heads up! I've updated the first comment accordingly.
from wgpu-py.
Submitting a hook that simply ads the whole resourced dir should be easy enough. Let's get to that once we have a release that includes binaries.
from wgpu-py.
Created the hook here: https://github.com/Korijn/pyinstaller/commit/c9f333ec7c15890ae019559e22697db027635502
Verified that it works:
korijn@swatcat:/media/ssd2/dev/wgpu-py (git:master) ✔
$ pipenv run pyinstaller --clean -y examples/triangle.py
69 INFO: PyInstaller: 4.0.dev0+gc4f43a07.mod
69 INFO: Python: 3.6.8
70 INFO: Platform: Linux-4.15.0-76-generic-x86_64-with-debian-buster-sid
70 INFO: wrote /media/ssd2/dev/wgpu-py/triangle.spec
71 INFO: UPX is not available.
71 INFO: Removing temporary files and cleaning cache in /home/korijn/.cache/pyinstaller
73 INFO: Extending PYTHONPATH with paths
['/media/ssd2/dev/wgpu-py/examples', '/media/ssd2/dev/wgpu-py']
73 INFO: checking Analysis
73 INFO: Building Analysis because Analysis-00.toc is non existent
73 INFO: Initializing module dependency graph...
74 INFO: Caching module graph hooks...
77 INFO: Analyzing base_library.zip ...
2130 INFO: Caching module dependency graph...
2186 INFO: running Analysis Analysis-00.toc
2201 INFO: Analyzing /media/ssd2/dev/wgpu-py/examples/triangle.py
2334 INFO: Processing pre-find module path hook distutils
2335 INFO: distutils: retargeting to non-venv dir '/home/korijn/.pyenv/versions/3.6.8/lib/python3.6'
2357 INFO: Processing module hooks...
2357 INFO: Loading module hook "hook-wgpu.py"...
2358 INFO: Loading module hook "hook-sysconfig.py"...
2364 INFO: Loading module hook "hook-distutils.py"...
2365 INFO: Loading module hook "hook-pkg_resources.py"...
2539 INFO: Processing pre-safe import module hook win32com
2717 INFO: Excluding import '__main__'
2717 INFO: Removing import of __main__ from module pkg_resources
2718 INFO: Loading module hook "hook-encodings.py"...
2757 INFO: Loading module hook "hook-xml.py"...
2929 INFO: Looking for ctypes DLLs
2960 INFO: Analyzing run-time hooks ...
2963 INFO: Including run-time hook 'pyi_rth_pkgres.py'
2967 INFO: Looking for dynamic libraries
3197 INFO: Looking for eggs
3198 INFO: Python library not in binary dependencies. Doing additional searching...
3211 INFO: Using Python library /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0
3214 INFO: Warnings written to /media/ssd2/dev/wgpu-py/build/triangle/warn-triangle.txt
3233 INFO: Graph cross-reference written to /media/ssd2/dev/wgpu-py/build/triangle/xref-triangle.html
3238 INFO: checking PYZ
3238 INFO: Building PYZ because PYZ-00.toc is non existent
3238 INFO: Building PYZ (ZlibArchive) /media/ssd2/dev/wgpu-py/build/triangle/PYZ-00.pyz
3534 INFO: Building PYZ (ZlibArchive) /media/ssd2/dev/wgpu-py/build/triangle/PYZ-00.pyz completed successfully.
3537 INFO: checking PKG
3537 INFO: Building PKG because PKG-00.toc is non existent
3537 INFO: Building PKG (CArchive) PKG-00.pkg
3556 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
3557 INFO: Bootloader /media/ssd2/dev/pyinstaller/PyInstaller/bootloader/Linux-64bit/run
3557 INFO: checking EXE
3557 INFO: Building EXE because EXE-00.toc is non existent
3557 INFO: Building EXE from EXE-00.toc
3557 INFO: Appending archive to ELF section in EXE /media/ssd2/dev/wgpu-py/build/triangle/triangle
3561 INFO: Building EXE from EXE-00.toc completed successfully.
3562 INFO: checking COLLECT
3562 INFO: Building COLLECT because COLLECT-00.toc is non existent
On your own risk, you can use the option `--noconfirm` to get rid of this question.
3562 INFO: Removing dir /media/ssd2/dev/wgpu-py/dist/triangle
3566 INFO: Building COLLECT COLLECT-00.toc
3585 INFO: Building COLLECT COLLECT-00.toc completed successfully.
korijn@swatcat:/media/ssd2/dev/wgpu-py (git:master) ✔
$ ls dist/triangle/wgpu/resources/
codegen_report.md libwgpu_native.so webgpu.idl wgpu.h wgpu_native-version
from wgpu-py.
Related Issues (20)
- Error when no draw function is provided HOT 1
- Warnings on import HOT 1
- test_glfw_canvas_del Windows fatal exception: access violation HOT 6
- Full-screen mode HOT 7
- Rolling out shadertoy HOT 5
- Run examples on CI on Windows / Mac / Linux
- Use webgpu.yml for parsing HOT 2
- Kivy support HOT 1
- HDR Support HOT 1
- Blocking render call HOT 2
- The expression may only be indexed by a constant HOT 3
- Update testing mechanics
- GPU info and identification HOT 21
- WxWgpuWindow object has no attribute 'add_event_handler' HOT 7
- Idea: auto-generated bindings for webgpu-native HOT 3
- Retry release for v0.15.1 ? HOT 1
- Change emum/flag implementation
- Minimal backend canvas API
- Document requirements to run in cloud/remote environments HOT 7
- Windows fatal exception: stack overflow during passing tests HOT 3
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 wgpu-py.