Skip to content

Add frozen module to unix port #13286

Answered by shariltumin
Krischan101 asked this question in Other
Discussion options

You must be logged in to vote

This is the way that I have done it for my unix port:

  1. cd micropython
  2. make a directory under micropython for example "extra". mkdir extra
  3. put all your python modules under "micropython/extra"
  4. cd ports/unix
  5. edit "variants/manifest.py"
  6. make V=1
  7. cd build-standard/
  8. ./micropython

Here is the content of my "variants/manifest.py" file

require("mip-cmdline")
# my extra modules
freeze('$(MPY_DIR)/extra', 'CryptoXo.py')
freeze('$(MPY_DIR)/extra', 'Caesar.py')
freeze('$(MPY_DIR)/extra', 'dotdict.py')
# -freeze('$(MPY_DIR)/extra', 'PickleDB.py')
freeze('$(MPY_DIR)/extra', 'pipe.py')
freeze('$(MPY_DIR)/extra', 'tscp.py')
freeze('$(MPY_DIR)/extra', 'worker.py')
# -freeze('$(MPY_DIR)/extra', 'wrepl.py')

Replies: 2 comments 3 replies

Comment options

andrewleech
Dec 28, 2023
Collaborator Sponsor

You must be logged in to vote
1 reply
@Krischan101
Comment options

Comment options

You must be logged in to vote
2 replies
@Krischan101
Comment options

@jimmo
Comment options

jimmo Jan 8, 2024
Maintainer

Answer selected by Krischan101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Other
Labels
None yet
4 participants