frederickjansen / polyline

A Python implementation of Google's Encoded Polyline Algorithm Format.
http://goo.gl/PvXf8Y
MIT License
114 stars 19 forks source link

Parse version without importing at setup time #5

Closed perrygeo closed 7 years ago

perrygeo commented 7 years ago

@frederickjansen We ran into an issue of failing installs on some machines. Importing polyline in it's own setup.py is the culprit since it fails if six is not installed beforehand.

This PR manually parses the __init__.py file to extract the version at setup time.

frederickjansen commented 7 years ago

Great catch, thanks @perrygeo!