blob: f23f824f3225bd5a1343f090ed177a25b2137f20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
from distutils.core import setup
import os
import subprocess
def get_version():
proc = subprocess.Popen(
["dpkg-parsechangelog"],
cwd=os.path.abspath(os.path.dirname(__file__)),
stdout=subprocess.PIPE)
output, _ = proc.communicate()
version = None
for line in output.split("\n"):
if line.startswith("Version: "):
version = line.split(" ", 1)[1].strip()
assert version is not None, (
"Couldn't determine version number from debian changelog")
setup(
name="hwpack",
version=get_version(),
packages=["hwpack", "linaro_media_create"],
)
|