Created
February 4, 2018 15:10
-
-
Save jaraco/d69427d72b89bc18b8f1858f68c5b4dc 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'], | |
script_args=('py2exe',), | |
) | |
if __name__ == '__main__': | |
from setuptools import setup | |
__import__('py2exe') | |
open('server.py', 'w').write('import cherrypy') | |
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