Skip to content

Commit

Permalink
fix 3.4 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bakatrouble committed Apr 15, 2019
1 parent 9f300d3 commit 2d4fc78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@

def check_libraries():
args = 'gcc -ltgvoip'.split()
out = subprocess.run(args, stderr=subprocess.PIPE).stderr.decode()
match = re.findall(r'cannot find -l(\w+)', out)
if match:
raise RuntimeError(
'Following libraries are not installed: {}\nFor guide on installing libtgvoip refer '
'https://github.com/bakatrouble/pytgvoip/blob/master/docs/libtgvoip.md'.format(', '.join(match))
)
with subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE) as process:
stdout, stderr = process.communicate()
match = re.findall(r'cannot find -l(\w+)', stderr.decode())
if match:
raise RuntimeError(
'Following libraries are not installed: {}\nFor guide on installing libtgvoip refer '
'https://github.com/bakatrouble/pytgvoip/blob/master/docs/libtgvoip.md'.format(', '.join(match))
)


class CMakeExtension(Extension):
Expand Down
2 changes: 1 addition & 1 deletion src/tgvoip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
from tgvoip.tgvoip import *
from tgvoip.tgvoip import __all__

__version__ = '0.0.2.2'
__version__ = '0.0.2.3'

0 comments on commit 2d4fc78

Please sign in to comment.