Top Level Namespace
- Includes:
- Opener::BuildTools::Files, Opener::BuildTools::Python, Opener::BuildTools::Requirements
Defined Under Namespace
Modules: Opener
Constant Summary collapse
- PYTHON_SITE_PACKAGES =
Directory where packages will be installed to.
File.( '../../../core/site-packages', __FILE__ )
- TMP_DIRECTORY =
Directory containing the temporary files.
File.('../../../tmp', __FILE__)
- PRE_BUILD_REQUIREMENTS =
Path to the pip requirements file used to install requirements before packaging the Gem.
File.( '../../../pre_build_requirements.txt', __FILE__ )
- PRE_INSTALL_REQUIREMENTS =
Path to the pip requirements file used to install requirements upon Gem installation.
File.( '../../../pre_install_requirements.txt', __FILE__ )
- VENDOR_DIRECTORY =
Path to the vendor directory for C code.
File.('../../../core/vendor', __FILE__)
- VENDOR_BUILD_DIRECTORY =
Path to the directory to install vendored C code into.
File.( '../../../core/vendor/build', __FILE__ )
Instance Method Summary collapse
- #install_tree_tagger ⇒ Object
-
#verify_requirements ⇒ Object
Verifies the requirements to install thi Gem.
Instance Method Details
#install_tree_tagger ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'ext/hack/support.rb', line 49 def install_tree_tagger #return if ENV['TREE_TAGGER_PATH'] build = VENDOR_BUILD_DIRECTORY mkdir_p(build) cd build do sh "curl -o tree-tagger-linux-3.2.tar.gz http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/tree-tagger-linux-3.2.tar.gz" sh "curl -o tagger-scripts.tar.gz http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/tagger-scripts.tar.gz" sh "curl -o install-tagger.sh http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/install-tagger.sh" sh "curl -o dutch-par-linux-3.2-utf8.bin.gz http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/dutch-par-linux-3.2-utf8.bin.gz" sh "curl -o french-par-linux-3.2-utf8.bin.gz http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/french-par-linux-3.2-utf8.bin.gz" sh "curl -o german-par-linux-3.2-utf8.bin.gz http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/german-par-linux-3.2-utf8.bin.gz" sh "curl -o italian-par-linux-3.2-utf8.bin.gz http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/italian-par-linux-3.2-utf8.bin.gz" sh "curl -o spanish-par-linux-3.2-utf8.bin.gz http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/spanish-par-linux-3.2-utf8.bin.gz" sh "curl -o english-par-linux-3.2.bin.gz http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data/english-par-linux-3.2.bin.gz" sh "sh install-tagger.sh" end end |
#verify_requirements ⇒ Object
Verifies the requirements to install thi Gem.
42 43 44 45 46 47 |
# File 'ext/hack/support.rb', line 42 def verify_requirements require_executable('python') require_version('python', python_version, '2.6.0') require_executable('pip') require_version('pip', pip_version, '1.3.1') end |