Commit cc8a1aa
removing some waf scripts
Changed files (9)
deletedwaf-1.7.6/utils/genbench.pydeletedwaf-1.7.6/utils/launcher/LICENSEdeletedwaf-1.7.6/utils/launcher/README.mddeletedwaf-1.7.6/utils/launcher/waf-launcher.slndeletedwaf-1.7.6/utils/launcher/waf-launcher/AssemblyInfo.csdeletedwaf-1.7.6/utils/launcher/waf-launcher/Main.csdeletedwaf-1.7.6/utils/launcher/waf-launcher/waf-launcher.csprojdeletedwaf-1.7.6/utils/launcher/wscriptdeletedwaf-1.7.6/utils/waf.bat
Diff
deleted file mode 100755@@ -1,344 +0,0 @@-#!/usr/bin/python-# encoding: utf-8--import sys-import os.path-from random import Random-random = Random(0) # initialise with seed to have reproductible benches--# for example: ./genbench.py /tmp/build 50 100 15 5--HELP_USAGE = """Usage: generate_libs.py root libs classes internal external.- root - Root directory where to create libs.- libs - Number of libraries (libraries only depend on those with smaller numbers)- classes - Number of classes per library- internal - Number of includes per file referring to that same library- external - Number of includes per file pointing to other libraries--To try the waf part, do:-waf configure build -p -j5--To test the autotools part, do:-touch README AUTHORS NEWS ChangeLog &&-autoreconf --install --symlink --verbose &&-mkdir autotools-build-dir &&-cd autotools-build-dir &&-../configure --disable-shared CXXFLAGS=-Wall &&-time make -j4 --silent &&-time make -j4 --silent-"""--def lib_name(i):- return "lib_" + str(i)--def createHeader(name):- filename = name + ".h"- handle = open(filename, "w" )-- guard = name + '_h_'- handle.write ('#ifndef ' + guard + '\n');- handle.write ('#define ' + guard + '\n\n');-- handle.write ('class ' + name + ' {\n');- handle.write ('public:\n');- handle.write (' ' + name + '();\n');- handle.write (' ~' + name + '();\n');- handle.write ('};\n\n');-- handle.write ('#endif\n');---def createCPP(name, lib_number, classes_per_lib, internal_includes, external_includes):- filename = name + ".cpp"- handle = open(filename, "w" )-- header= name + ".h"- handle.write ('#include "' + header + '"\n');-- includes = random.sample(range(classes_per_lib), internal_includes)- for i in includes:- handle.write ('#include "class_' + str(i) + '.h"\n')-- if (lib_number > 0):- includes = random.sample(range(classes_per_lib), external_includes)- lib_list = range(lib_number)- for i in includes:- libname = 'lib_' + str(random.choice(lib_list))- handle.write ('#include <' + libname + '/' + 'class_' + str(i) + '.h>\n')-- handle.write ('\n');- handle.write (name + '::' + name + '() {}\n');- handle.write (name + '::~' + name + '() {}\n');---def createSConscript(lib_number, classes):- handle = open("SConscript", "w");- handle.write("Import('env')\n")- handle.write('list = Split("""\n');- for i in range(classes):- handle.write(' class_' + str(i) + '.cpp\n')- handle.write(' """)\n\n')- handle.write('env.StaticLibrary("lib_' + str(lib_number) + '", list)\n\n')--def createLibCMakeLists(lib_number, classes):- handle = open("CMakeLists.txt", "w")- handle.write("""add_library(lib_%s STATIC %s)\n""" % (str(lib_number), ' '.join(('class_%s' % str(i) for i in range(classes)))))--def createLibMakefile(lib_number, classes):- handle = open("Makefile", "w");- handle.write ("""COMPILER = g++-INC = -I..-CCFLAGS = -g -Wall $(INC)-ARCHIVE = ar-DEPEND = makedepend-.SUFFIXES: .o .cpp--""")- handle.write ("lib = lib_" + str(lib_number) + ".a\n")- handle.write ("src = \\\n")- for i in range(classes):- handle.write('class_' + str(i) + '.cpp \\\n')- handle.write ("""--objects = $(patsubst %.cpp, %.o, $(src))--all: depend $(lib)--$(lib): $(objects)- $(ARCHIVE) cr $@ $^- touch $@--.cpp.o:- $(COMPILER) $(CCFLAGS) -c $<--clean:- @rm $(objects) $(lib) 2> /dev/null--depend:- @$(DEPEND) $(INC) $(src)--""")--def createLibJamFile(lib_number, classes):- handle = open("Jamfile", "w")- handle.write ("SubDir TOP lib_" + str(lib_number) + " ;\n\n")- handle.write ("SubDirHdrs $(INCLUDES) ;\n\n")- handle.write ("Library lib_" + str(lib_number) + " :\n")- for i in range(classes):- handle.write(' class_' + str(i) + '.cpp\n')- handle.write (' ;\n')--def createVCProjFile(lib_number, classes):- handle = open("lib_" + str(lib_number) + ".vcproj", "w")- handle.write("""<?xml version="1.0" encoding="Windows-1252"?>-<VisualStudioProject- ProjectType="Visual C++"- Version="7.10"- Name=""" + '"' + lib_name(lib_number) + '"' + """- ProjectGUID="{CF495178-8865-4D20-939D-AAA""" + str(lib_number) + """}"- Keyword="Win32Proj">- <Platforms>- <Platform- Name="Win32"/>- </Platforms>- <Configurations>- <Configuration- Name="Debug|Win32"- OutputDirectory="Debug"- IntermediateDirectory="Debug"- ConfigurationType="4"- CharacterSet="2">- <Tool- Name="VCCLCompilerTool"- Optimization="0"- PreprocessorDefinitions="WIN32;_DEBUG;_LIB"- AdditionalIncludeDirectories=".."- MinimalRebuild="TRUE"- BasicRuntimeChecks="3"- RuntimeLibrary="5"- UsePrecompiledHeader="0"- WarningLevel="3"- Detect64BitPortabilityProblems="TRUE"- DebugInformationFormat="4"/>- <Tool- Name="VCCustomBuildTool"/>- <Tool- Name="VCLibrarianTool"- OutputFile="$(OutDir)/""" + lib_name(lib_number) + """.lib"/>- </Configuration>- </Configurations>- <References>- </References>- <Files>-""")-- for i in range(classes):- handle.write(' <File RelativePath=".\class_' + str(i) + '.cpp"/>\n')-- handle.write("""- </Files>- <Globals>- </Globals>-</VisualStudioProject>-""")--def createLibrary(lib_number, classes, internal_includes, external_includes):- name = "lib_" + str(lib_number)- setDir(name)- for i in range(classes):- classname = "class_" + str(i)- createHeader(classname)- createCPP(classname, lib_number, classes, internal_includes, external_includes)- createSConscript(lib_number, classes)- createLibCMakeLists(lib_number, classes)- createLibMakefile(lib_number, classes)- createAutotools(lib_number, classes)-- os.chdir("..")--def createCMakeLists(libs):- handle = open("CMakeLists.txt", "w")- handle.write("""project('profiling-test')-cmake_minimum_required(VERSION 2.8)--include_directories(${CMAKE_SOURCE_DIR})-""")-- for i in range(libs):- handle.write("""add_subdirectory(lib_%s)\n""" % str(i))--def createSConstruct(libs):- handle = open("SConstruct", "w");- handle.write("""env = Environment(CPPFLAGS=['-Wall'], CPPDEFINES=['LINUX'], CPPPATH=[Dir('#')])\n""")- handle.write("""env.Decider('timestamp-newer')\n""")- handle.write("""env.SetOption('implicit_cache', True)\n""")- handle.write("""env.SourceCode('.', None)\n""")-- for i in range(libs):- handle.write("""env.SConscript("lib_%s/SConscript", exports=['env'])\n""" % str(i))--def createFullMakefile(libs):- handle = open("Makefile", "w")-- handle.write('subdirs = \\\n')- for i in range(libs):- handle.write('lib_' + str(i) + '\\\n')- handle.write("""--all: $(subdirs)- @for i in $(subdirs); do \- $(MAKE) -C $$i all; done--clean:- @for i in $(subdirs); do \- (cd $$i; $(MAKE) clean); done--depend:- @for i in $(subdirs); do \- (cd $$i; $(MAKE) depend); done-""")--def createFullJamfile(libs):- handle = open("Jamfile", "w")- handle.write ("SubDir TOP ;\n\n")-- for i in range(libs):- handle.write('SubInclude TOP ' + lib_name(i) + ' ;\n')-- handle = open("Jamrules", "w")- handle.write('INCLUDES = $(TOP) ;\n')--WT = """#! /usr/bin/env python-# encoding: utf-8--VERSION = '0.0.2'-APPNAME = 'build_bench'-top = '.'-out = 'out'--def configure(conf):- conf.load('g++')--def build(bld):- for i in range(%d):- filez = ' '.join(['lib_%%d/class_%%d.cpp' %% (i, j) for j in range(%d)])- bld.stlib(- source = filez,- target = 'lib_%%d' %% i,- includes = '.', # include the top-level- )-"""--def createWtop(libs, classes):- f = open('wscript', 'w')- f.write(WT % (libs, classes))- f.close()--def createFullSolution(libs):- handle = open("solution.sln", "w")- handle.write("Microsoft Visual Studio Solution File, Format Version 8.00\n")-- for i in range(libs):- project_name = lib_name(i) + '\\' + lib_name(i) + '.vcproj'- handle.write('Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "' + lib_name(i) +- '", "' + project_name + '", "{CF495178-8865-4D20-939D-AAA' + str(i) + '}"\n')- handle.write('EndProject\n')--def createAutotoolsTop(libs):- handle = open("configure.ac", "w")- handle.write('''\-AC_INIT([bench], [1.0.0])-AC_CONFIG_AUX_DIR([autotools-aux])-AM_INIT_AUTOMAKE([subdir-objects nostdinc no-define tar-pax dist-bzip2])-AM_PROG_LIBTOOL-AC_CONFIG_HEADERS([config.h])-AC_CONFIG_FILES([Makefile])-AC_OUTPUT-''')-- handle = open("Makefile.am", "w")- handle.write('''\-AM_CPPFLAGS = -I$(srcdir)-lib_LTLIBRARIES =-''')- for i in range(libs): handle.write('include lib_%s/Makefile.am\n' % str(i))--def createAutotools(lib_number, classes):-- handle = open("Makefile.am", "w")- handle.write('''\-lib_LTLIBRARIES += lib%s.la-lib%s_la_SOURCES =''' % (str(lib_number), str(lib_number)))- for i in range(classes): handle.write(' lib_%s/class_%s.cpp' % (str(lib_number), str(i)))- handle.write('\n')--def setDir(dir):- if (not os.path.exists(dir)):- os.mkdir(dir)- os.chdir(dir)--def main(argv):- if len(argv) != 6:- print(HELP_USAGE)- return-- root_dir = argv[1]- libs = int(argv[2])- classes = int(argv[3])- internal_includes = int(argv[4])- external_includes = int(argv[5])-- setDir(root_dir)- for i in range(libs):- createLibrary(i, classes, internal_includes, external_includes)-- createSConstruct(libs)- createCMakeLists(libs)- createFullMakefile(libs)- createWtop(libs, classes)- createAutotoolsTop(libs)--if __name__ == "__main__":- main( sys.argv )--deleted file mode 100644@@ -1,25 +0,0 @@-Redistribution and use in source and binary forms, with or without-modification, are permitted provided that the following conditions-are met:--1. Redistributions of source code must retain the above copyright- notice, this list of conditions and the following disclaimer.--2. Redistributions in binary form must reproduce the above copyright- notice, this list of conditions and the following disclaimer in the- documentation and/or other materials provided with the distribution.--3. The name of the author may not be used to endorse or promote products- derived from this software without specific prior written permission.--THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE-DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)-HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,-STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING-IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE-POSSIBILITY OF SUCH DAMAGE.deleted file mode 100644@@ -1,42 +0,0 @@-#Waf-launcher-This is a simple wrapper for the -[waf build system](http://code.google.com/p/waf/)--Since many windows users does not have python installed by default, -the exe file from this project can be included along with the copy of -waf to wrap waf to install python on demand.--The requirements is only .Net 2.0 whics is either Windows Server 2003 R2 -and up, or Windows Vista and up. There is a good chance it is installed -in many OEM installs of Windows XP as well--##How to compile-use either waf or monodevelop (wscript and project files is in the repository)--##How to use--Assume we have a repository, myrepo, where wscript and waf already exists.-- myrepo/waf- myrepo/wscript--now copy waf-launcher/bin/Release/waf.exe to the repository-- myrepo/waf.exe--Linux users can continue to use `./waf`, just like-Windows users can continue to use `python waf`--For Windows users there is now a second way to invoke waf by writing -either `waf.exe` or simply just `waf`.--When the Windows users does that the following happens:--1. It tries "python waf"-2. If 1 failed it tries "C:\python27\python.exe waf"-3. If 2 failed it ask for permission to install python-4. If pemission is given it tries to install python silently-5. step 1 and 2 it done again-6. If this still fails we exit with an error--Any arguments to `waf.exe` is passed on to `waf`deleted file mode 100644@@ -1,21 +0,0 @@- -Microsoft Visual Studio Solution File, Format Version 10.00 -# Visual Studio 2008 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "waf-launcher", "waf-launcher\waf-launcher.csproj", "{63E79792-BE8F-4AE5-9A99-99B1AE4D96E3}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x86 = Debug|x86 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {63E79792-BE8F-4AE5-9A99-99B1AE4D96E3}.Debug|x86.ActiveCfg = Debug|x86 - {63E79792-BE8F-4AE5-9A99-99B1AE4D96E3}.Debug|x86.Build.0 = Debug|x86 - {63E79792-BE8F-4AE5-9A99-99B1AE4D96E3}.Release|x86.ActiveCfg = Release|x86 - {63E79792-BE8F-4AE5-9A99-99B1AE4D96E3}.Release|x86.Build.0 = Release|x86 - EndGlobalSection - GlobalSection(MonoDevelopProperties) = preSolution - StartupItem = waf-launcher\waf-launcher.csproj - version = 1.0 - EndGlobalSection -EndGlobal deleted file mode 100644@@ -1,27 +0,0 @@-using System.Reflection;-using System.Runtime.CompilerServices;--// Information about this assembly is defined by the following attributes. -// Change them to the values specific to your project.--[assembly: AssemblyTitle("waf-launcher")]-[assembly: AssemblyDescription("")]-[assembly: AssemblyConfiguration("")]-[assembly: AssemblyCompany("")]-[assembly: AssemblyProduct("")]-[assembly: AssemblyCopyright("")]-[assembly: AssemblyTrademark("")]-[assembly: AssemblyCulture("")]--// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".-// The form "{Major}.{Minor}.*" will automatically update the build and revision,-// and "{Major}.{Minor}.{Build}.*" will update just the revision.--[assembly: AssemblyVersion("1.0.*")]--// The following attributes are used to specify the signing key for the assembly, -// if desired. See the Mono documentation for more information about signing.--//[assembly: AssemblyDelaySign(false)]-//[assembly: AssemblyKeyFile("")]-deleted file mode 100644@@ -1,99 +0,0 @@-using System;-using System.Diagnostics;--namespace waflauncher-{- class MainClass- {- public static System.Diagnostics.Process exec(string command,params string[] args) {- String argstring = String.Join(" ",args);- System.Diagnostics.ProcessStartInfo startinfo = new System.Diagnostics.ProcessStartInfo(command,argstring);- startinfo.UseShellExecute = false;- System.Diagnostics.Process p;- try {- p = Process.Start(startinfo);- } catch (System.ComponentModel.Win32Exception){- return null;- }- p.WaitForExit();- return p;- }-- public static int Main (string[] args)- {- //I run waf and if not succesful we try on-the-fly install of python- if(!runWaf(args)){- //but first we ask the user if it's okay to install software on their computer- if(mayInstall()){- //I install python and try running waf yet another time- installPython();- if(!runWaf(args)){- //If it still fails something has gone horrible wrong- Console.WriteLine("Python not fully working");- return 1;- }- } else {- Console.WriteLine("Not automatically installing Python");- Console.WriteLine("Please download and install http://www.python.org/ftp/python/2.7.1/python-2.7.1.msi");- Console.WriteLine("or if you have python installed make sure it is on %PATH%");- Console.WriteLine("or run this command again and answer yes");- }- }- return 0;- }-- public static bool mayInstall() {- Console.Write("Download and install python [Y/n]? ");- ConsoleKeyInfo a = Console.ReadKey();- Console.WriteLine();- switch(a.KeyChar){- case 'Y':- case 'y':- case '\n':- case '\r':- return true;- //If unsure default to not doing it- default:- return false;- }- }-- public static String getwafDir(){- //This changes the current directory to the place where the exe exists- System.Reflection.Assembly a = System.Reflection.Assembly.GetEntryAssembly();- String path = System.IO.Path.GetDirectoryName(a.Location);- return path + System.IO.Path.DirectorySeparatorChar;- }-- public static bool runWaf(string[] args){- Process p = exec("python", getwafDir() + "waf", String.Join(" ",args));- //If command could be execeuted return true- if (p != null) return true;- //If not try with the direct path to the default installation which is where installPython() will install it to- //This is done since the %PATH% variable might not be setup to include python-- List<String> versions = new List<String>() { "27", "32", "26", "31", "25", "30" };- foreach (String v in versions) {- p = exec("C:\\Python"+v+"\\python.exe", "waf", String.Join(" ",args));- if (p != null) return true;- }- return false;- }-- public static void installPython(){- //Make a filename to download python to- String filename = System.IO.Path.GetTempPath() + Char.ToString(System.IO.Path.DirectorySeparatorChar) + "python-2.7.1.msi";-- System.Net.WebClient web = new System.Net.WebClient();- Console.WriteLine ("Downloading python 2.7");- web.DownloadFile("http://www.python.org/ftp/python/2.7.1/python-2.7.1.msi",filename);- Console.WriteLine ("python2.7 downloaded to " + filename);-- Console.WriteLine ("Installing python");- //filename must be qouted or else msiexec will fail- exec("msiexec","/qn","/i","\"" +filename + "\"");- Console.WriteLine ("Python is now installed");- }- }-}-deleted file mode 100644@@ -1,50 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">- <PropertyGroup>- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>- <Platform Condition=" '$(Platform)' == '' ">x86</Platform>- <ProductVersion>9.0.21022</ProductVersion>- <SchemaVersion>2.0</SchemaVersion>- <ProjectGuid>{63E79792-BE8F-4AE5-9A99-99B1AE4D96E3}</ProjectGuid>- <OutputType>Exe</OutputType>- <RootNamespace>waflauncher</RootNamespace>- <AssemblyName>waf</AssemblyName>- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>- <ReleaseVersion>1.0</ReleaseVersion>- </PropertyGroup>- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">- <DebugSymbols>true</DebugSymbols>- <DebugType>full</DebugType>- <Optimize>false</Optimize>- <OutputPath>bin\Debug</OutputPath>- <DefineConstants>DEBUG</DefineConstants>- <ErrorReport>prompt</ErrorReport>- <WarningLevel>4</WarningLevel>- <PlatformTarget>x86</PlatformTarget>- <Externalconsole>true</Externalconsole>- </PropertyGroup>- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">- <DebugType>none</DebugType>- <Optimize>false</Optimize>- <OutputPath>bin\Release</OutputPath>- <ErrorReport>prompt</ErrorReport>- <WarningLevel>4</WarningLevel>- <PlatformTarget>x86</PlatformTarget>- <Externalconsole>true</Externalconsole>- </PropertyGroup>- <ItemGroup>- <Reference Include="System" />- </ItemGroup>- <ItemGroup>- <Compile Include="Main.cs" />- <Compile Include="AssemblyInfo.cs" />- </ItemGroup>- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />- <ProjectExtensions>- <MonoDevelop>- <Properties>- <Deployment.LinuxDeployData generateScript="false" />- </Properties>- </MonoDevelop>- </ProjectExtensions>-</Project>\ No newline at end of filedeleted file mode 100644@@ -1,7 +0,0 @@-out = 'waf-launcher/bin/Release'--def configure(config):- config.load('cs')--def build(bld):- bld(features='cs',source='waf-launcher/Main.cs', type='exe',gen='waf.exe')deleted file mode 100644@@ -1,100 +0,0 @@-@echo off - -rem from issue #964 - -Setlocal EnableDelayedExpansion - -rem Check Windows Version -set TOKEN=tokens=3* -ver | findstr /i "5\.0\." > nul -if %ERRORLEVEL% EQU 0 SET TOKEN=tokens=3* -ver | findstr /i "5\.1\." > nul -if %ERRORLEVEL% EQU 0 SET TOKEN=tokens=3* -ver | findstr /i "5\.2\." > nul -if %ERRORLEVEL% EQU 0 SET TOKEN=tokens=3* -ver | findstr /i "6\.0\." > nul -if %ERRORLEVEL% EQU 0 SET TOKEN=tokens=2* -ver | findstr /i "6\.1\." > nul -if %ERRORLEVEL% EQU 0 SET TOKEN=tokens=2* - -rem Start calculating PYTHON and PYTHON_DIR -set PYTHON= -set PYTHON_DIR= - -Setlocal EnableDelayedExpansion - -set PYTHON_DIR_OK=FALSE -set REGPATH= - -for %%i in (3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0 2.7 2.6 2.5 2.4 2.3) do ( -for %%j in (HKCU HKLM) do ( -for %%k in (SOFTWARE\Wow6432Node SOFTWARE) do ( -for %%l in (Python\PythonCore IronPython) do ( -set REG_PYTHON_EXE=python.exe -if "%%l"=="IronPython" ( -set REG_PYTHON_EXE=ipy.exe -) - -@echo on - -set REGPATH=%%j\%%k\%%l\%%i\InstallPath -rem @echo Regpath !REGPATH! -REG QUERY "!REGPATH!" /ve 1>nul 2>nul -if !ERRORLEVEL! equ 0 ( - for /F "%TOKEN% delims= " %%A IN ('REG QUERY "!REGPATH!" /ve') do @set REG_PYTHON_DIR=%%B - if exist !REG_PYTHON_DIR! ( - set REG_PYTHON=!REG_PYTHON_DIR!!REG_PYTHON_EXE! - rem set PYTHON_DIR_OK=TRUE - if "!PYTHON_DIR_OK!"=="FALSE" ( - set PYTHON_DIR=!REG_PYTHON_DIR! - set PYTHON=!REG_PYTHON! - set PYTHON_DIR_OK=TRUE - ) - - rem set PYTHON_DIR_OK=FALSE - rem @echo Find !REG_PYTHON! - rem goto finished - ) -) - -echo off - -) -rem for l -) -rem for k -) -rem for j -) -rem for i - - - -:finished - -Endlocal & SET PYTHON_DIR=%PYTHON_DIR% & SET PYTHON=%PYTHON% - -if "%PYTHON_DIR%" == "" ( -rem @echo No Python dir -set PYTHON=python -goto running -) - -rem @echo %PYTHON_DIR% - -if "%PYTHON%" == "" ( -rem @echo No Python -set PYTHON=python -goto running -) - -set PYTHON_INCLUDE=%PYTHON_DIR%include -set PYTHON_LIB=%PYTHON_DIR%libs\python27.lib -set PATH=%PYTHON_DIR%;%PYTHON_DIR%Scripts;%PYTHON_DIR%Tools\Scripts;%PATH% - -:running - -@echo Using %PYTHON% - -"%PYTHON%" -x "%~dp0waf" %* & Endlocal & exit /b -