mirror of
https://github.com/projectatomic/atomic.git
synced 2026-02-05 18:45:01 +01:00
Importing __version__ directly from Atomic package in setup.py prevented accessing setup.py without installing the Python dependencies. Using pkg_resources to retrieve package version in setup.py is a better way to do it.
21 lines
714 B
Python
21 lines
714 B
Python
#!/usr/bin/env python
|
|
|
|
# Author: Dan Walsh <dwalsh@redhat.com>
|
|
import os
|
|
from distutils.core import setup
|
|
import pkg_resources
|
|
|
|
__version__ = pkg_resources.require('Atomic')[0].version
|
|
|
|
setup(
|
|
name = "atomic", scripts=["atomic", "atomic_dbus.py"], version=__version__,
|
|
description="Atomic Management Tool",
|
|
author="Daniel Walsh", author_email="dwalsh@redhat.com",
|
|
packages=["Atomic"],
|
|
data_files=[('/etc/dbus-1/system.d/', ["org.atomic.conf"]),
|
|
('/usr/share/dbus-1/system-services', ["org.atomic.service"]),
|
|
('/usr/share/polkit-1/actions/', ["org.atomic.policy"]),
|
|
("/usr/share/bash-completion/completions/",
|
|
["bash/atomic"])]
|
|
)
|