Created
February 4, 2018 15:23
-
-
Save jaraco/15a27d9853efcd8735a77679637b708f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Build script to create a doc-to-pdf convert server as a Windows executable. | |
""" | |
import os | |
setup_params = dict( | |
console=['server.py'], | |
options=dict( | |
py2exe=dict( | |
packages=['pkg_resources'], | |
), | |
), | |
script_args=('py2exe',), | |
) | |
if __name__ == '__main__': | |
from setuptools import setup | |
__import__('py2exe') | |
open('server.py', 'w').write('import jaraco.classes') | |
setup(**setup_params) | |
os.remove('server.py') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment