-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
31 lines (25 loc) · 887 Bytes
/
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
#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
print(
'You do not have setuptools isntalled and can not install this module. The easiest '
'way to fix this is to install pip by following the instructions at '
'https://pip.readthedocs.io/en/latest/installing/\n',
file=sys.stderr,
)
sys.exit(1)
if __name__ == '__main__':
print('Sopel does not correctly load plugins installed with setup.py directly. '
'Please use "pip install ." or add '
f'{os.path.dirname(os.path.abspath(__file__))}/sopel_openweathermap '
'to core.extra in your configuration file.',
file=sys.stderr)
with open('README.md') as readme_file:
readme = readme_file.read()
setup(
long_description=f"{readme}\n\n",
long_description_content_type="text/markdown"
)