Skip to content

cleanups #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,41 +653,6 @@ def _create_batch_scripts(self):
path = conv(self.prepath) + ";%PATH%;" + conv(self.postpath)


self.create_batch_script('Add_or_removeLine.vbs',r"""
'from http://blogs.technet.com/b/heyscriptingguy/archive/2007/09/07/
' how-can-i-remove-any-line-in-a-text-file-that-contains-a-specified-string-value.aspx
If WScript.Arguments.Count <> 3 then
WScript.Echo "usage: Add_or_removeLine.vbs filename word_to_find line_to_add" &_
vbNewLine & "or Add_or_removeLine.vbs filename word_to_find -remove"
WScript.Quit
end If

Set colArgs = WScript.Arguments
Add_or_removeLine colArgs(0), colArgs(1), colArgs(2)

function Add_or_removeLine(strFilename, strFind, strAction)
Set inputFile = CreateObject("Scripting.FileSystemObject").OpenTextFile(strFilename, 1)
a_change = False
Do Until inputFile.AtEndOfStream
strLine = inputFile.ReadLine
If InStr(strLine, strFind) = 0 Then
result_text= result_text & strLine & vbNewLine
else
a_change = True
if strAction <> "-remove" then result_text= result_text & strLine & vbNewLine & strAction & vbNewLine
End If
Loop
inputFile.Close

if a_change then
Set outputFile = CreateObject("Scripting.FileSystemObject").OpenTextFile(strFilename,2,true)
outputFile.Write result_text
outputFile.Close
end if
end function
""")


# Prepare a live patch on python (shame we need it) to have mingw64ok
patch_distutils = r"""

Expand Down
6 changes: 6 additions & 0 deletions winpython/data/packages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ description=ggplot for python
url=https://github.com/yhat/ggplot
category=plot

[gr]
description=Python visualization framework

[graphviz]
description=Simple Python interface for Graphviz

Expand Down Expand Up @@ -366,6 +369,9 @@ description=PuLP is an LP modeler written in python. PuLP can generate MPS or LP
[py]
description=library with cross-python path, ini-parsing, io, code, log facilities

[pyaudio]
description=Bindings for PortAudio v19, the cross-platform audio input/output stream library.

[pybars3]
description=Handlebars.js templating for Python 3 and 2

Expand Down