Skip to content

Commit

Permalink
Add extra options for installation via setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyWeeUsr committed Oct 13, 2018
1 parent 093f6bc commit 001038d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions setup.py
Expand Up @@ -15,8 +15,21 @@
from os.path import dirname, join
import plyer

EXTRA_OPTIONS = {}

try:
from setuptools import setup
EXTRA_OPTIONS = dict(
EXTRA_OPTIONS, **{
'extras_require': {
'ios': ['pyobjus'],
'macosx': ['pyobjus'],
'android': ['pyjnius'],
'dev': ['mock', 'pycodestyle', 'pylint']
}
}
)

except ImportError:
from distutils.core import setup

Expand Down Expand Up @@ -66,4 +79,5 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
**EXTRA_OPTIONS
)

0 comments on commit 001038d

Please sign in to comment.