ipeterov / convenient-rpc

Convenient APIs for calling python functions remotely at many workers.
MIT License
0 stars 0 forks source link

Test whether workers install packages from custom PyPi repos #1

Closed ipeterov closed 8 years ago

ipeterov commented 8 years ago

From @ipeterov on April 19, 2016 19:58

This is the main use-case, so it's very important. First, we need to test whether theyt install from usual PyPi (which they should).

Copied from original issue: ipeterov/task-processor#1

ipeterov commented 8 years ago

We probably need to deploy current version to AWS and make 1 worker at AWS too.

ipeterov commented 8 years ago
funcdesc = {'function': 'shannon_entropy', 'package': 'entropy', 'module': 'entropy'}
for answer in api.map(funcdesc, ('qwe', 'qwe1', 'qwe2')):
    print(answer)

0.19812031562256
0.25
0.25

It works!

ipeterov commented 8 years ago

Though I had to install python3.5-dev package in order to make venv work. We should mention it somewhere.