Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import os

from setuptools import find_packages, setup
from distutils.core import setup
import distutils.command.bdist_rpm
import distutils.command.install

version = '0.1.2a1'
install_requires = ['six']
Expand All @@ -13,6 +16,23 @@
with open(os.path.join(here, 'CHANGELOG.rst')) as fp:
longdesc += "\n\n" + fp.read()

class bdist_rpm(distutils.command.bdist_rpm.bdist_rpm):

def _make_spec_file(self):
spec = distutils.command.bdist_rpm.bdist_rpm._make_spec_file(self)
for path, files , perm in permissions:

##
# Add a line to the SPEC file to change the permissions of a
# specific file upon install.
#
# example:
# %attr(666, root, root) path/file
#
spec.extend(['%attr{} {}/{}'.format(perm, path, files)])

return spec

setup(
name='python-libxdo',
version=version,
Expand Down