diff --git a/python/setup-test-environment/build.gradle b/python/setup-test-environment/build.gradle index 29bcc83f38fa..714b2e7b6419 100644 --- a/python/setup-test-environment/build.gradle +++ b/python/setup-test-environment/build.gradle @@ -82,7 +82,7 @@ envs { ["django==1.11", "tox", "nose", "pytest", "Twisted", "behave", "lettuce>=0.2.22", "unittest2", "teamcity-messages", "django-nose"] + ( Os.isFamily(Os.FAMILY_WINDOWS) ? ['pypiwin32'] : [] ) //win32api is required for pypiwin32 , - "python2.7\ndjango\nnose\npytest\nbehave\nlettuce\npackaging\ntox\nunittest2\ntwisted\ndjango-nose", + "python2.7\ndjango\nnose\npytest\nbehave\nlettuce\npackaging\ntox\nunittest2\ntwisted==17.9\ndjango-nose", true) createPython("py35_django20_full", @@ -143,21 +143,21 @@ task prepare(type: Delete) { doFirst { new File(envs.bootstrapDirectory, "django_latest").with { djangoLatestFolder -> - if (djangoLatestFolder.exists() && djangoLatestFolder.lastModified() < System.currentTimeMillis() - 24 * 60 * 60 * 1000) { + // if (djangoLatestFolder.exists() && djangoLatestFolder.lastModified() < System.currentTimeMillis() - 24 * 60 * 60 * 1000) { // older then a day println "Cleaning django_latest at" + djangoLatestFolder delete djangoLatestFolder - } + // } } - if (!envs.bootstrapDirectory.exists() || (System.getenv("NO_CLEAN") == null && envs.envsDirectory.exists() && - envs.envsDirectory.lastModified() < project.buildscript.sourceFile.lastModified())) { +// if (!envs.bootstrapDirectory.exists() || (System.getenv("NO_CLEAN") == null && envs.envsDirectory.exists() && + // envs.envsDirectory.lastModified() < project.buildscript.sourceFile.lastModified())) { // clean the cache if the build script was modified later println "Cleaning cached environments at " + envs.envsDirectory delete envs.envsDirectory println "Cleaning cached pythons at " + envs.bootstrapDirectory delete envs.bootstrapDirectory - } + //} } }