forked from conda/menuinst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (53 loc) · 1.76 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2013-2017 Continuum Analytics, Inc.
# Copyright (c) 2008-2011 by Enthought, Inc.
# All rights reserved.
#
# Licensed under the terms of the BSD 3-clause License (See LICENSE.txt)
# -----------------------------------------------------------------------------
"""Menuinst setup."""
# Standard library imports
from distutils.core import Extension, setup
import os
import sys
# Local imports
import versioneer
HERE = os.path.abspath(os.path.dirname(__file__))
def get_description():
"""Get long description."""
with open(os.path.join(HERE, 'README.rst'), 'r') as f:
data = f.read()
return data
if sys.platform == "win32":
extensions = [Extension(
"menuinst.windows.winshortcut",
sources=["menuinst/windows/winshortcut.cpp"],
include_dirs=["menuinst"],
libraries=["comctl32", "kernel32", "user32", "gdi32", "winspool",
"comdlg32", "advapi32", "shell32", "ole32", "oleaut32",
"uuid", "odbc32", "odbccp32"]
)]
install_requires = ['pywin32']
else:
extensions = []
install_requires = []
setup(
name="menuinst",
url="https://github.com/ContinuumIO/menuinst",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="cross platform install of menu items",
long_description=get_description(),
ext_modules=extensions,
include_package_data=True,
install_requires=install_requires,
package_data={"menuinst": ["osx/*.icns"]},
license="BSD 3-clause",
packages=[
'menuinst',
'menuinst.linux',
'menuinst.osx',
'menuinst.windows',
],
)