Skip to content

ktyeh/python2exe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python2exe(py) => exe

Abstract

py2exe converts Python scripts into executable Windows programs. However, it leads to an error when scripts import "numpy".

python2exe.py is using py2exe with "numpy problem" fixed and records the timestamp of building.

Installation

git clone https://github.com/ktyeh/python2exe.git

Usage

python python2exe.py -t <target.py> [-D <dirname>] [-s <source>] [-d <destination>]

Args:

  • target.py: name of the main Python script

  • dirname: name of directory, defaultly set as same as target

  • source: path of target.py, defaultly set as current directory

  • destination: output path, defaultly set as current directory

Examples:

cd python2exe
python python2exe.py -t test.py -D DIRNAME -s source -d dist

And test.exe would be in ./dist/DIRNAME

Run ./dist/DIRNAME/test.exe

alt tag

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages