Halite Home

Uploading Wheels


#1

I've bundled all my helper code into a wheel, but am struggling to install it correctly. My uploaded zip file looks like this:

bot.zip
    MyBot.py
    hlt-0.1-py2.py3-none-any.whl
    install.sh

And my install.sh is just:

#!/bin/bash
# Install script for bot submissions
pip3 install hlt-0.1-py2.py3-none-any.whl

I get this import error meaning i have not installed my wheel correctly:

ImportError: No module named 'hlt'

Any idea what's going wrong?


#2

You can't install things globally, which might be what is happening here. I don't believe virtualenvs are supported yet, so this may not work.


#3

Thanks!
Instead, I included the helper package's source code in the zip and put a
pip install -e .
in the install.sh, which seems to have worked.