Commit 745ef1b0 authored by tarek's avatar tarek

Now install_site works properly with distribute distribution. fixes #44

--HG--
branch : distribute
extra : rebase_source : 5dacd496be767ed406f7f8c76a598e7f186acdbc
parent 4fba5767
...@@ -6,6 +6,12 @@ CHANGES ...@@ -6,6 +6,12 @@ CHANGES
0.6.2 0.6.2
----- -----
setuptools
==========
* Fixed invalid usage of requirement.parse, that broke develop -d.
closed http://bugs.python.org/setuptools/issue44.
----- -----
0.6.1 0.6.1
...@@ -18,7 +24,7 @@ setuptools ...@@ -18,7 +24,7 @@ setuptools
This closes http://bitbucket.org/tarek/distribute/issue/16 and This closes http://bitbucket.org/tarek/distribute/issue/16 and
http://bitbucket.org/tarek/distribute/issue/18. http://bitbucket.org/tarek/distribute/issue/18.
* zip_ok is now True by default. This closes * zip_ok is now False by default. This closes
http://bugs.python.org/setuptools/issue33. http://bugs.python.org/setuptools/issue33.
* Fixed invalid URL error catching. http://bugs.python.org/setuptools/issue20. * Fixed invalid URL error catching. http://bugs.python.org/setuptools/issue20.
......
...@@ -1078,7 +1078,7 @@ Please make the appropriate changes for your system and try again.""" % ( ...@@ -1078,7 +1078,7 @@ Please make the appropriate changes for your system and try again.""" % (
return # already did it, or don't need to return # already did it, or don't need to
sitepy = os.path.join(self.install_dir, "site.py") sitepy = os.path.join(self.install_dir, "site.py")
source = resource_string(Requirement.parse("setuptools"), "site.py") source = resource_string(Requirement.parse("distribute"), "site.py")
current = "" current = ""
if os.path.exists(sitepy): if os.path.exists(sitepy):
......
"""Easy install Tests
"""
import os, shutil, tempfile, unittest
from setuptools.command.easy_install import easy_install
from setuptools.dist import Distribution
class TestEasyInstallTest(unittest.TestCase):
def test_install_site_py(self):
dist = Distribution()
cmd = easy_install(dist)
cmd.sitepy_installed = False
cmd.install_dir = tempfile.mkdtemp()
try:
cmd.install_site_py()
sitepy = os.path.join(cmd.install_dir, 'site.py')
self.assert_(os.path.exists(sitepy))
finally:
shutil.rmtree(cmd.install_dir)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment