Refactored spawn_plot to not use the with-statement, so we can install the dev version of eventlet on 2.4.
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
This script will generate a number of "properties" files for the
|
||||
Hudson plot plugin
|
||||
'''
|
||||
from __future__ import with_statement
|
||||
|
||||
import os
|
||||
import eventlet
|
||||
@@ -17,8 +16,9 @@ if not os.path.exists(DATA_DIR):
|
||||
os.makedirs(DATA_DIR)
|
||||
|
||||
def write_result(filename, best):
|
||||
with open(os.path.join(DATA_DIR, filename), 'w') as fd:
|
||||
fd.write('YVALUE=%s' % best)
|
||||
fd = open(os.path.join(DATA_DIR, filename), 'w')
|
||||
fd.write('YVALUE=%s' % best)
|
||||
fd.close()
|
||||
|
||||
def cleanup():
|
||||
eventlet.sleep(0.2)
|
||||
|
||||
2
setup.py
2
setup.py
@@ -20,7 +20,7 @@ setup(
|
||||
author='Linden Lab',
|
||||
author_email='eventletdev@lists.secondlife.com',
|
||||
url='http://eventlet.net',
|
||||
packages=find_packages(exclude=['tests']),
|
||||
packages=find_packages(exclude=['tests', 'benchmarks']),
|
||||
install_requires=requirements,
|
||||
zip_safe=False,
|
||||
long_description=open(
|
||||
|
||||
Reference in New Issue
Block a user