Skip to content

Commit

Permalink
Avoid own import in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
markokr committed Jun 8, 2016
1 parent 0cad14e commit 590de69
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#! /usr/bin/env python
"""Setup script for rarfile.
"""

from distutils.core import setup

import rarfile
import re

vrx = r"""^__version__ *= *['"]([^'"]+)['"]"""
src = open("rarfile.py").read()
ver = re.search(vrx, src, re.M).group(1)

ver = rarfile.__version__
ldesc = open("README.rst").read().strip()
sdesc = ldesc.split('\n')[0].split(' - ')[1].strip()

Expand Down

0 comments on commit 590de69

Please sign in to comment.