1. Michael Kerrin
  2. moin

Commits

Thomas Waldmann  committed b062718

use XStatic-svgweb package, require it via setup.py, remove it from quickinstall scripts

  • Participants
  • Parent commits 8a21b92
  • Branches default

Comments (0)

Files changed (4)

File quickinstall

View file
  • Ignore whitespace
 download $DIR/mathjax.tgz http://static.moinmo.in/files/packages/mathjax.tar.gz
 tar xz -C $DIR/ -f $DIR/mathjax.tgz
 
-download $DIR/svgweb.zip http://svgweb.googlecode.com/files/svgweb-2010-08-10-Owlephant-1.zip
-unzip -q -o -d $DIR/ $DIR/svgweb.zip
-
 AWDDIR='AnyWikiDraw 0.14'
 download $DIR/awd.zip 'http://downloads.sourceforge.net/project/anywikidraw/anywikidraw/anywikidraw-0.14/anywikidraw-0.14.zip?use_mirror=ignum'
 unzip -q -o -d $DIR/ $DIR/awd.zip

File quickinstall.bat

View file
  • Ignore whitespace
 7za x env/svg-edit.tar.gz -y -oenv\
 7za x env/svg-edit.tar -y -oenv\
 
-wget -nc http://svgweb.googlecode.com/files/svgweb-2010-08-10-Owlephant-1.zip -Penv/
-7za x env/svgweb-2010-08-10-Owlephant-1.zip -y -oenv\
-
 wget -nc http://downloads.sourceforge.net/project/anywikidraw/anywikidraw/anywikidraw-0.14/anywikidraw-0.14.zip?use_mirror=ignum -Penv/
 7za x env/anywikidraw-0.14.zip -y -oenv\
 xcopy "env\AnyWikiDraw 0.14" env\AnyWikiDraw\ /Y /E /H

File setup.py

View file
  • Ignore whitespace
         'sphinx', # needed to build the docs
         'XStatic-jQuery',
         'XStatic-jQuery-File-Upload',
+        'XStatic-svgweb',
     ],
     # optional features and their list of requirements
     extras_require = {

File wikiconfig.py

View file
  • Ignore whitespace
         docs = os.path.join(wikiconfig_dir, 'docs', '_build', 'html'),
         # see "quickinstall" script about how to get those files there
         ckeditor = os.path.join(wikiconfig_dir, env_dir, 'ckeditor'),
-        svgweb = os.path.join(wikiconfig_dir, env_dir, 'svgweb', 'src'),
         anywikidraw = os.path.join(wikiconfig_dir, env_dir, 'AnyWikiDraw', 'anywikidraw', 'moinmoin'),
         twikidraw = os.path.join(wikiconfig_dir, env_dir, 'TWikiDrawPlugin'),
         svgedit = os.path.join(wikiconfig_dir, env_dir, 'svg-edit'),
     jfu = JQueryFileUpload(root_url='/static', provider='local', protocol='http')
     serve_files.update([(jfu.name, jfu.get_mapping()[1])])
 
+    from xstatic.pkg.svgweb import SVGWeb
+    sw = SVGWeb(root_url='/static', provider='local', protocol='http')
+    serve_files.update([(sw.name, sw.get_mapping()[1])])
+
     # ^^^ DON'T TOUCH THIS EXCEPT IF YOU KNOW WHAT YOU DO ^^^
 
     #item_root = u'Home' # change to some better value