forked from lowks/pythonpy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
27 lines (25 loc) · 1.07 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
from distutils.core import setup
import os
if os.geteuid() == 0:
data_files = [('/etc/bash_completion.d', ['extras/pycompletion.sh']),]
else:
print(
'''**************************************************************************
___ ____ ____ _ _ _ ____ ____ _ ____ _ _ ___ ____ _ _ _ ____ ___
|__] |___ |__/ |\/| | [__ [__ | | | |\ | | \ |___ |\ | | |___ | \
| |___ | \ | | | ___] ___] | |__| | \| |__/ |___ | \| | |___ |__/
PERMISSION DENIED: Cannot copy pycompletion.sh to /etc/bash_completion.d
To configure tab completion without root, run
source /path/to/install_directory/bash_completion.d/pycompletion.sh
**************************************************************************''')
data_files = [('bash_completion.d', ['extras/pycompletion.sh']),]
setup(
name='pythonpy',
version='0.3.4',
description='python -c, with tab completion and shorthand',
scripts=['py', 'extras/py3', 'extras/pycompleter'],
data_files=data_files,
license='MIT',
url='https://github.com/Russell91/pythonpy',
long_description='',
)