Jason R. Coombs avatar Jason R. Coombs committed 7efc476

Fixed issue with handling of easy_install paramters.

Comments (0)

Files changed (1)

-import os
+import os as _os
-from setuptools.command import test as _pytest_runner_test
+import setuptools.command.test as _pytest_runner_test
 class PyTest(_pytest_runner_test.test):
 	user_options = [
 		self.allow_hosts = None
 	def finalize_options(self):
-		if self.allow_hosts:
-			self.allow_hosts = self.allow_hosts.split(',')
+		pass
 	def run(self):
 				links = opts['find_links'][1].split() + links
 			opts['find_links'] = ('setup', links)
 		if self.allow_hosts:
-			opts['allow_hosts'] = self.allow_hosts
+			opts['allow_hosts'] = ('test', self.allow_hosts)
 		if self.index_url:
-			opts['index_url'] = self.index_url
+			opts['index_url'] = ('test', self.index_url)
 		cmd = easy_install(
-			dist, args=["x"], install_dir=os.curdir, exclude_scripts=True,
+			dist, args=["x"], install_dir=_os.curdir, exclude_scripts=True,
 			always_copy=False, build_directory=None, editable=False,
 			upgrade=False, multi_version=True, no_report = True
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.