Permalink
Browse files

Note on pips in README and switching to python -u.

  • Loading branch information...
1 parent 4d28a94 commit e61761aa3805547f93bfc300423b26ea2edee9d7 Andrew Kirilenko committed Dec 20, 2012
Showing with 12 additions and 2 deletions.
  1. +10 −0 README.md
  2. +1 −1 lib/iron_worker_ng/code/runtime/python.rb
  3. +1 −1 lib/iron_worker_ng/version.rb
View
10 README.md
@@ -340,6 +340,16 @@ Merge the exec located at `path`.
code.merge_exec 'my_worker.py'
```
+### merge_pip(name, version = '')
+### pip(name, version = '')
+
+Merge a pip package with dependencies. If any pip package contains native extensions, switch to full remote build. You can use version constrains if you need a specific pip package version.
+
+```ruby
+code.merge_pip 'iron_mq'
+code.merge_pip 'iron_worker', '>0.2'
+```
+
# Upload Your Worker
When you have your code package, you are ready to upload and run it on the IronWorker cloud.
View
2 lib/iron_worker_ng/code/runtime/python.rb
@@ -10,7 +10,7 @@ module Python
def runtime_run_code(local = false)
<<RUN_CODE
-PATH=`pwd`/__pips__/bin:$PATH PYTHONPATH=`pwd`/__pips__ python #{File.basename(@exec.path)} "$@"
+PATH=`pwd`/__pips__/bin:$PATH PYTHONPATH=`pwd`/__pips__ python -u #{File.basename(@exec.path)} "$@"
RUN_CODE
end
end
View
2 lib/iron_worker_ng/version.rb
@@ -1,5 +1,5 @@
module IronWorkerNG
- VERSION = '0.14.1'
+ VERSION = '0.14.2'
def self.version
VERSION

0 comments on commit e61761a

Please sign in to comment.