Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Fix up bin/ scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Dec 7, 2011
1 parent 973dda4 commit a340da0
Show file tree
Hide file tree
Showing 23 changed files with 254 additions and 311 deletions.
18 changes: 17 additions & 1 deletion bin/bfg2pyramid
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
#!/home/ianb/src/fxshare/appsync/build-env/bin/python2.7
#!/usr/bin/env python
# This implements something like virtualenv-style activation whenever
# you use the script:
import sys, os
base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Only do this if we're not in a virtualenv already
if not getattr(sys, 'real_prefix', None):
prev_sys_path = list(sys.path)
import site
site.addsitedir(base)
new_sys_path = []
for item in list(sys.path):
if item not in prev_sys_path:
new_sys_path.append(item)
sys.path.remove(item)
# Put our entries first
sys.path[:0] = new_sys_path
# EASY-INSTALL-ENTRY-SCRIPT: 'pyramid==1.2.1','console_scripts','bfg2pyramid'
__requires__ = 'pyramid==1.2.1'
import sys
Expand Down
19 changes: 18 additions & 1 deletion bin/mako-render
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
#!/home/ianb/src/fxshare/appsync/build-env/bin/python2.7
#!/usr/bin/env python
# This implements something like virtualenv-style activation whenever
# you use the script:
import sys, os
base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Only do this if we're not in a virtualenv already
if not getattr(sys, 'real_prefix', None):
prev_sys_path = list(sys.path)
import site
site.addsitedir(base)
new_sys_path = []
for item in list(sys.path):
if item not in prev_sys_path:
new_sys_path.append(item)
sys.path.remove(item)
# Put our entries first
sys.path[:0] = new_sys_path
# EASY-INSTALL-ENTRY-SCRIPT: (fakely)

def render(data):
from mako.template import Template
Expand Down
18 changes: 17 additions & 1 deletion bin/nosetests
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
#!/home/ianb/src/fxshare/appsync/build-env/bin/python2.7
#!/usr/bin/env python2.7
import sys, os
base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Only do this if we're not in a virtualenv already
if not getattr(sys, 'real_prefix', None):
# Put our entries first
prev_sys_path = list(sys.path)
import site
site.addsitedir(base)
new_sys_path = []
for item in list(sys.path):
if item not in prev_sys_path:
new_sys_path.append(item)
sys.path.remove(item)
sys.path[:0] = new_sys_path

# EASY-INSTALL-ENTRY-SCRIPT: 'nose==1.1.2','console_scripts','nosetests'
__requires__ = 'nose==1.1.2'
import sys

from pkg_resources import load_entry_point

if __name__ == '__main__':
Expand Down
18 changes: 17 additions & 1 deletion bin/paster
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
#!/home/ianb/src/fxshare/appsync/build-env/bin/python2.7
#!/usr/bin/env python
# This implements something like virtualenv-style activation whenever
# you use the script:
import sys, os
base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Only do this if we're not in a virtualenv already
if not getattr(sys, 'real_prefix', None):
prev_sys_path = list(sys.path)
import site
site.addsitedir(base)
new_sys_path = []
for item in list(sys.path):
if item not in prev_sys_path:
new_sys_path.append(item)
sys.path.remove(item)
# Put our entries first
sys.path[:0] = new_sys_path
# EASY-INSTALL-ENTRY-SCRIPT: 'PasteScript==1.7.4.2','console_scripts','paster'
__requires__ = 'PasteScript==1.7.4.2'
import sys
Expand Down
18 changes: 17 additions & 1 deletion bin/pygmentize
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
#!/home/ianb/src/fxshare/appsync/build-env/bin/python2.7
#!/usr/bin/env python
# This implements something like virtualenv-style activation whenever
# you use the script:
import sys, os
base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Only do this if we're not in a virtualenv already
if not getattr(sys, 'real_prefix', None):
prev_sys_path = list(sys.path)
import site
site.addsitedir(base)
new_sys_path = []
for item in list(sys.path):
if item not in prev_sys_path:
new_sys_path.append(item)
sys.path.remove(item)
# Put our entries first
sys.path[:0] = new_sys_path
# EASY-INSTALL-ENTRY-SCRIPT: 'Pygments==1.4','console_scripts','pygmentize'
__requires__ = 'Pygments==1.4'
import sys
Expand Down
23 changes: 0 additions & 23 deletions bin/rst2html.py

This file was deleted.

26 changes: 0 additions & 26 deletions bin/rst2latex.py

This file was deleted.

26 changes: 0 additions & 26 deletions bin/rst2man.py

This file was deleted.

30 changes: 0 additions & 30 deletions bin/rst2odt.py

This file was deleted.

67 changes: 0 additions & 67 deletions bin/rst2odt_prepstyles.py

This file was deleted.

23 changes: 0 additions & 23 deletions bin/rst2pseudoxml.py

This file was deleted.

24 changes: 0 additions & 24 deletions bin/rst2s5.py

This file was deleted.

26 changes: 0 additions & 26 deletions bin/rst2xetex.py

This file was deleted.

23 changes: 0 additions & 23 deletions bin/rst2xml.py

This file was deleted.

Loading

0 comments on commit a340da0

Please sign in to comment.