Skip to content

Compile python to bytecode for multiple version using Anaconda.

License

Notifications You must be signed in to change notification settings

oOHiyoriOo/PythonMultiCompile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

PythonMultiCompile

Compile python to bytecode for multiple version using Anaconda.

you can use this script(s) with installed anaconda to "compile" a python file to bytecode for multiple versions at once.

  1. Change the anaconda Path to you anaconda Main Folder.
  2. Change the envs to enviroments that you have installed.
  3. change the CHANGEME.py to oyu file.

the start of the script should look like this:

set anaconda_path=C:\PATH\TO\Anaconda\
set "envs=py_36 py_37 py_38 py_39 py_310"
set "pyfile=byte_me.py"

...

after that, just run it using cmd or double click it and all you should see a folder named "py_bytecode" with you pyc files and there coresponding version.

About

Compile python to bytecode for multiple version using Anaconda.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published