Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Apr 8, 2018
1 parent fed4e46 commit 5b3514d
Show file tree
Hide file tree
Showing 5 changed files with 1,046 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# pyexe.exe

[![Build status](https://ci.appveyor.com/api/projects/status/n18f0997k18x87lw/branch/master?svg=true)](https://ci.appveyor.com/project/manthey/pyexe/branch/master)

I have often wanted a stand-alone version of python that would be a single Windows executable. This is my attempt to make a generally useful executable.

It consists of the most recent versions of Python 2.7, pywin32, and psutil, and includes all packages that py2exe sensibly includes without extra work.

See the appveyor script for build instructions.

Go ahead and use the executable or source as you see fit. Credit is appreciated, but not necessary. I accept no liability.

If you found this useful, let me know. Please file any issues. Obviously, one could include more or less libraries to either add features or reduce the size of the executable. I don't intend to make alternate versions with different libraries.

39 changes: 39 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
init:
- SET PROJDIR=%cd%
- pip install pywin32 psutil
- pip install http://sourceforge.net/projects/py2exe/files/latest/download?source=files
- mkdir c:\u
- cd c:\u
- curl -L -O "https://github.com/upx/upx/releases/download/v3.94/upx394w.zip"
- unzip upx394w.zip
- cd %PROJDIR%

build_script:
- python setup.py py2exe
- cp dist\py.exe .
- C:\u\upx394w\upx.exe --best --ultra-brute --8086 py.exe

artifacts:
- path: dist\py.exe
- path: py.exe

deploy:
- provider: GitHub
tag: 'pyexe-latest'
release: 'Release pyexe-latest'
auth_token:
secure: PGsGUDU6oqIy7zCyTMwIWlzf4TbJtuIgqmWb9ZLqNlM13AAaxWfDlzDlG+0CyHFx
artifact: py.exe
force_update: true
on:
branch: master

- provider: GitHub
tag: $(appveyor_repo_tag_name)
release: Release $(appveyor_repo_tag_name)
auth_token:
secure: PGsGUDU6oqIy7zCyTMwIWlzf4TbJtuIgqmWb9ZLqNlM13AAaxWfDlzDlG+0CyHFx
artifact: py.exe
force_update: true
on:
appveyor_repo_tag: true
Loading

0 comments on commit 5b3514d

Please sign in to comment.