Skip to content

Commit 694a401

Browse files
Fix version import in setup.py
1 parent e0d7ad3 commit 694a401

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

pygly/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# the version of software
55
# this is used by the setup.py script
6-
__version__ = '20120816'
6+
from version import __version__
77

88
# make 'from module import *' work dynamically.
99
# otherwise we have to manually update the __all__ list.

pygly/version.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# the version of software
2+
# this is used by the setup.py script
3+
__version__ = '20120816'
4+

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
from distutils.core import setup
44
import sys
55

6-
from pygly import __version__
6+
# get pygly's version but don't import it
7+
# or we'll need our dependencies already installed
8+
# https://github.com/todddeluca/happybase/commit/63573cdaefe3a2b98ece87e19d9ceb18f00bc0d9
9+
execfile('pygly/version.py')
710

811
os_x_requires = ['pyglet(>=1.2)', 'pyobjc(==2.2)']
912
other_requires = ['pyglet']

0 commit comments

Comments
 (0)