Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Standalone Python Programs using PyInstaller
Search
Jace Browning
September 19, 2016
Programming
0
75
Standalone Python Programs using PyInstaller
A talk on Python packaging and PyInstaller given at GRPUG.
Jace Browning
September 19, 2016
Tweet
Share
More Decks by Jace Browning
See All by Jace Browning
HTMX + Django
jacebrowning
0
110
Python Packaging and Distribution
jacebrowning
0
60
Best Practices for Automated Regression Testing
jacebrowning
0
120
Skillet pitch at Startup Weekend
jacebrowning
0
170
Continuous Deployment using GitHub, CircleCI, and Heroku
jacebrowning
0
150
Intro to Make
jacebrowning
0
56
Juicy Slices of Testing
jacebrowning
0
93
Continuous Deployment: Biography of a Feature Request
jacebrowning
0
93
From Code to Production
jacebrowning
0
92
Other Decks in Programming
See All in Programming
入門 AWS Amplify Gen2 / Introduction to AWS Amplify Gen2
genkiogasawara
1
310
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.2k
元気予報
suu_mire0726
0
850
Changed Rules: Architectures with Lightweight Stores
manfredsteyer
PRO
0
230
エンターテイメント業界で利用されるAWS
demuyan
0
200
Site Reliability Engineering for GMO
pyama86
6
900
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.6k
pixivアプリでマルチモジュールを実現するまで
gatosyocora
1
130
CircleCIを活用して AWSへの継続的デリバリーを 実践する
coconala_engineer
1
230
Milestoner
bkuhlmann
1
400
脱・初心者!脱・マネコン!AWS CDKを使ってみませんか!?
har1101
0
300
puregoの活用例
aethiopicuschan
0
220
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
115
18k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
What's in a price? How to price your products and services
michaelherold
237
11k
4 Signs Your Business is Dying
shpigford
175
21k
Why Our Code Smells
bkeepers
PRO
331
56k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
The Power of CSS Pseudo Elements
geoffreycrofte
59
5k
A designer walks into a library…
pauljervisheath
199
23k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
Building Your Own Lightsaber
phodgson
98
5.7k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
321
20k
GitHub's CSS Performance
jonrohan
1023
450k
Transcript
Standalone Programs using PyInstaller @JaceBrowning
Outline • State of Python Packaging • Standalone Distribution •
PyInstaller Overview • Demonstration • Work Time!
Interpreted Languages 101 • Code ◦ Modules ◦ Packages •
Interpreter ◦ CPython aka “Python” ◦ Jython ◦ IronPython
State of Python Packaging
The Pieces • setuptools • wheel • twine • pip
Setup Script
Setup Script https://packaging.python.org/distributing https://github.com/pypa/sampleproject
Distributions • Built distribution ◦ ◦ • Source distribution ◦
Upload • Python Package Index ◦ https://pypi.python.org ◦ https://pypi.io (“warehouse”)
• Upload distributions ◦ ◦
Standalone Distribution
So why do it? • Making work tools accessible •
Sharing projects with non-programmers • It’s fun!
Interpreter Embedding • py2exe and py2app • cx_Freeze • PyInstaller
Transcompilation • Nuitka
PyInstaller
Getting PyInstaller • http://www.pyinstaller.org • In general: ◦
Getting PyInstaller • On OS X: ◦ ◦ ◦ ◦
Getting PyInstaller • On linux: ◦ ◦ ◦ ◦ ◦
◦
Quickstart
Specs • Command: ◦ • https://pyinstaller.readthedocs.io/en/stable/spec-files.html
Specs
Options • •
Options • •
Options • •
Building • Command: ◦ • https://github.com/pyinstaller/pyinstaller/wiki/Supported-Packages
Compression • UPX • 5.8 MB:
Demonstration
None
Now you try!