mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Merge pull request #2635 from cgohlke/windows-startmenu
Improve Windows start menu shortcuts * Create Windows start menu shortcuts with better names. * Add shortcuts for IPython Notebook and online documentation. * Add icons for IPython console and notebook. * Apply PEP8 to ipython_win_post_install.py. * Tested on win32-py2.7, win-amd64-py2.7, win-amd64-py3.3, Windows 8.
This commit is contained in:
commit
b1acb5254e
8
setup.py
8
setup.py
@ -174,7 +174,7 @@ from distutils.command.sdist import sdist
|
||||
from distutils.command.upload import upload
|
||||
|
||||
class UploadWindowsInstallers(upload):
|
||||
|
||||
|
||||
description = "Upload Windows installers to PyPI (only used from tools/release_windows.py)"
|
||||
user_options = upload.user_options + [
|
||||
('files=', 'f', 'exe file (or glob) to upload')
|
||||
@ -187,7 +187,7 @@ class UploadWindowsInstallers(upload):
|
||||
version=meta.get_version()
|
||||
)
|
||||
self.files = os.path.join('dist', '%s.*.exe' % base)
|
||||
|
||||
|
||||
def run(self):
|
||||
for dist_file in glob(self.files):
|
||||
self.upload_file('bdist_wininst', 'any', dist_file)
|
||||
@ -256,11 +256,13 @@ if 'setuptools' in sys.modules:
|
||||
('sdist' in sys.argv or 'bdist_rpm' in sys.argv):
|
||||
print >> sys.stderr, "ERROR: bdist_wininst must be run alone. Exiting."
|
||||
sys.exit(1)
|
||||
setup_args['data_files'].append(
|
||||
['Scripts', ('scripts/ipython.ico', 'scripts/ipython_nb.ico')])
|
||||
setup_args['scripts'] = [pjoin('scripts','ipython_win_post_install.py')]
|
||||
setup_args['options'] = {"bdist_wininst":
|
||||
{"install_script":
|
||||
"ipython_win_post_install.py"}}
|
||||
|
||||
|
||||
if PY3:
|
||||
setuptools_extra_args['use_2to3'] = True
|
||||
# we try to make a 2.6, 2.7, and 3.1 to 3.3 python compatible code
|
||||
|
Loading…
x
Reference in New Issue
Block a user