arcade icon indicating copy to clipboard operation
arcade copied to clipboard

Make pymunk excludable during os packaging

Open eruvanos opened this issue 1 year ago • 6 comments

Enhancement request:

Building a game to distribute it, allows to exclude unused packages. While Pymunk might not be used in the game, the occurring import errors make it unable to be excluded.

What should be added/changed?

  • catch import errors in arcade.init
  • Use "MissingImportAlgo" within hitbox if pymunk is not available

eruvanos avatar Nov 15 '24 05:11 eruvanos

I've never actually faced this issue using Nuitka, what packaging library did you use?

DragonMoffon avatar Nov 17 '24 05:11 DragonMoffon

I used cx_freeze. Did you exclude pymunk in your build?

eruvanos avatar Nov 17 '24 07:11 eruvanos

Ah maybe not

DragonMoffon avatar Nov 17 '24 09:11 DragonMoffon

@DragonMoffon could you take a look? https://github.com/pythonarcade/arcade/pull/2458

eruvanos avatar Nov 18 '24 15:11 eruvanos

Status on this. Any forward plan or thoughts?

einarf avatar Mar 29 '25 12:03 einarf

Possibly we need support for lazy loading to get started on this?

einarf avatar Apr 03 '25 18:04 einarf