This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cookbook_path ["cookbooks", "site-cookbooks"] | |
role_path "roles" | |
data_bag_path "data_bags" | |
encrypted_data_bag_secret ".chef/data_bag_key" | |
environment_path "environments" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |config| | |
config.vm.box = "ubuntu-12.10-x64" #http://cloud-images.ubuntu.com/quantal/current/quantal-server-cloudimg-vagrant-amd64-disk1.box | |
config.vm.provision :chef_solo do |chef| | |
#chef.log_level = "debug" | |
chef.cookbooks_path = "cookbooks" | |
chef.roles_path = "roles" | |
chef.add_role "python-build" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cookbook 'mysql', | |
:git => 'https://github.com/9minutesnooze/mysql.git', | |
:ref => 'mysql56' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo aptitude install libxml2-dev libxslt-dev | |
$ sudo gem install bundler | |
$ mkdir /tmp/veewee | |
$ cd /tmp/veewee | |
$ bundle init | |
$ cat << HERE >> Gemfile 2>&1 | |
gem "vagrant" | |
gem "veewee" | |
HERE | |
$ bundle install --path . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h3>toctree</h3> | |
{{ local_toctree(pagename, maxdepth=-1) }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export BUILD_TEST_PATH=tests | |
pip install . --use-mirrors | |
pip install nose sqlalchemy whoosh --use-mirrors | |
python tests/run.py | |
sphinx-build -W -b html -d _build/doctrees doc _build/html |
If you want to build PIL on Windows, you need to prepare few external libraries. Although some libraries did not provide static library for windows 32/64 bits then you need to build these libraries by your hand too. Also, PIL will load by python at last then you are recommended to use same compiler with python to build libraries.
Pillow: | 1.7.8 for Python 2.7: src |
---|
If you want to build PIL on Windows, you need to prepare few external libraries. Although some libraries did not provide static library for windows 32/64 bits then you need to build these libraries by your hand too. Also, PIL will load by python at last then you are recommended to use same compiler with python to build libraries.
PIL: | 1.1.7 for Python 2.4 (or Pillow-1.7.8) |
---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################ | |
# inline doc directive for substitution | |
# rst: .. |sub| doc:: docname | |
# html: <a href="docname.html">sub</a> | |
from sphinx.util.compat import Directive | |
from sphinx.roles import XRefRole | |
class DocDirective(Directive): | |
required_arguments = 1 |