<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>__init__.py</filename>
    </added>
    <added>
      <filename>gaesupport.py</filename>
    </added>
    <added>
      <filename>handlers.py</filename>
    </added>
    <added>
      <filename>license.txt</filename>
    </added>
    <added>
      <filename>middleware.py</filename>
    </added>
    <added>
      <filename>utils.py</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -83,6 +83,15 @@ def dep(src)
   cp(s, d, {:verbose =&gt; false})
 end
 
+def dep2(src, add='')
+  s = File.expand_path src
+  rs = s[ROOT.size..-1]
+  d = File.join(TMP, add, rs)
+  puts &quot;#{cmd_color('copying')} #{file_color(s)}&quot;
+  puts &quot;     -&gt; #{file_color(d)}&quot;
+  cp(s, d, {:verbose =&gt; false})
+end
+
 def my_mkdir(dir)
   puts &quot;#{cmd_color('creating directory')} #{dir_color(dir)}&quot;
   mkdir(dir, {:verbose =&gt; false})
@@ -153,10 +162,27 @@ end
 
 desc &quot;Update PyPI index and upload library sources&quot;
 task :pypi do
-  Dir.chdir(PYTHON) do
+  remove_dir(TMP) if File.exists?(TMP) # recursive!
+  mkdir(TMP, {:verbose =&gt; false})
+
+  dep2(File.join(ROOT, 'README.markdown'))
+  dep2(File.join(ROOT, 'license.txt'))
+  dep2(File.join(ROOT, 'setup.py'))
+
+  firepython_dir = File.join(TMP, 'firepython')
+  my_mkdir(firepython_dir) unless File.exist?(firepython_dir)
+  dep2(File.join(ROOT, '__init__.py'), 'firepython')
+  dep2(File.join(ROOT, 'gaesupport.py'), 'firepython')
+  dep2(File.join(ROOT, 'middleware.py'), 'firepython')
+  dep2(File.join(ROOT, 'utils.py'), 'firepython')
+  dep2(File.join(ROOT, 'handlers.py'), 'firepython')
+  
+  Dir.chdir(TMP) do
     system(&quot;python setup.py register&quot;) or die(&quot;register failed&quot;)
     system(&quot;python setup.py sdist upload&quot;) or die(&quot;upload failed&quot;)
   end 
+
+  remove_dir(TMP) if File.exist?(TMP) # recursive!
 end
 
 desc &quot;Resets version in all relevant sources&quot;</diff>
      <filename>rakefile</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>firepython/__init__.py</filename>
    </removed>
    <removed>
      <filename>firepython/gaesupport.py</filename>
    </removed>
    <removed>
      <filename>firepython/handlers.py</filename>
    </removed>
    <removed>
      <filename>firepython/middleware.py</filename>
    </removed>
    <removed>
      <filename>firepython/utils.py</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>9e1dc4c0391d779efcddc32f6a8ae7ea31b60331</id>
    </parent>
  </parents>
  <author>
    <name>Antonin Hildebrand</name>
    <email>antonin@hildebrand.cz</email>
  </author>
  <url>http://github.com/darwin/firepython/commit/972db5fd365ec028ae361786a0ec544e1bf53ec6</url>
  <id>972db5fd365ec028ae361786a0ec544e1bf53ec6</id>
  <committed-date>2008-11-28T06:13:39-08:00</committed-date>
  <authored-date>2008-11-28T06:13:39-08:00</authored-date>
  <message>sources moved to project root (to be easily included as git submodule)

also updated build script for pypi package</message>
  <tree>78bdfe2ef3ba81afd2486ddbf39d2ff2de1c0fae</tree>
  <committer>
    <name>Antonin Hildebrand</name>
    <email>antonin@hildebrand.cz</email>
  </committer>
</commit>
