<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -38,6 +38,14 @@ Operating System :: MacOS
 # update it when the contents of directories change.
 if os.path.exists('MANIFEST'): os.remove('MANIFEST')
 
+sys.path.insert(0, os.path.dirname(__file__))
+try:
+    setup_py = __import__(&quot;setup&quot;)
+    FULLVERSION = setup_py.FULLVERSION
+    write_version_py = setup_py.write_version_py
+finally:
+    sys.path.pop(0)
+
 # This is a bit hackish: we are setting a global variable so that the main
 # numpy __init__ can detect if it is being loaded by the setup routine, to
 # avoid attempting to load components that aren't built yet.  While ugly, it's
@@ -84,6 +92,10 @@ def setup_package():
     os.chdir(local_path)
     sys.path.insert(0,local_path)
 
+    # Rewrite the version file everytime
+    if os.path.exists('numpy/version.py'): os.remove('numpy/version.py')
+    write_version_py()
+
     try:
         setup(
             name = 'numpy',</diff>
      <filename>setupscons.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>26caa115ac61f0bd40279a54aa26defd09d91d03</id>
    </parent>
  </parents>
  <author>
    <name>cdavid</name>
    <email>cdavid@94b884b6-d6fd-0310-90d3-974f1d3f35e1</email>
  </author>
  <url>http://github.com/cournape/numpy/commit/afc5853e4fed450b52ee250218857497237839b3</url>
  <id>afc5853e4fed450b52ee250218857497237839b3</id>
  <committed-date>2009-05-16T02:46:10-07:00</committed-date>
  <authored-date>2009-05-16T02:46:10-07:00</authored-date>
  <message>Fix setupscons.py so that the version.py is correctly generated.

git-svn-id: http://svn.scipy.org/svn/numpy/trunk@7001 94b884b6-d6fd-0310-90d3-974f1d3f35e1</message>
  <tree>133e5d1a0d2db05f556a544d42e1baf7f1b9eeb1</tree>
  <committer>
    <name>cdavid</name>
    <email>cdavid@94b884b6-d6fd-0310-90d3-974f1d3f35e1</email>
  </committer>
</commit>
