-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (43 loc) · 1.47 KB
/
Copy pathsetup.py
File metadata and controls
47 lines (43 loc) · 1.47 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
#from distutils.core import setup
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
from freekey import freekey
class install(_install):
def run(self):
_install.run(self)
# Install bin.
bin_src_fqfn = '%s/freekey/freekey.py' % (self.install_libbase,)
bin_dst_fqfn = '%s/freekey' % (self.install_scripts,)
print 'writing %s' % bin_dst_fqfn
os.chmod(bin_src_fqfn, 0755)
if os.path.isfile(bin_src_fqfn+'c'):
os.chmod(bin_src_fqfn+'c', 0755)
if os.path.isfile(bin_dst_fqfn):
os.remove(bin_dst_fqfn)
os.symlink(bin_src_fqfn, bin_dst_fqfn)
#os.chmod(bin_dst_fqfn, 755)
setup(
name='freekey',
version=freekey.__version__,
description='Allows limited keyboard use on a locked desktop',
author='Chris Spencer',
author_email='chrisspen@gmail.com',
url='https://github.com/chrisspen/freekey',
license='LGPL',
packages=find_packages(),
#install_requires=[],
classifiers = [
"Programming Language :: Python",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Topic :: Software Development :: Libraries :: Python Modules",
],
platforms=['Linux'],
cmdclass={
'install': install
},
)