Created
November 25, 2019 11:45
-
-
Save tgpfeiffer/9fe7afead269964f91a3c3f7e94568a5 to your computer and use it in GitHub Desktop.
example for pypa/setuptools#1917
This file contains 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
FROM ubuntu:18.04 | |
RUN apt-get update && apt-get install -y python3-pip virtualenv | |
RUN virtualenv -p python3 /env | |
COPY setup.py /root | |
RUN . /env/bin/activate && \ | |
cd /root && \ | |
python3 --version && \ | |
python3 -c "import setuptools; print(setuptools.__version__)" && \ | |
pip3 --version && \ | |
pip install -U setuptools==42.0.0 && \ | |
python3 setup.py develop |
This file contains 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
from setuptools import setup, find_packages | |
setup( | |
name='MyPackageName', | |
version='1.0.0', | |
url='https://github.com/mypackage.git', | |
author='Author Name', | |
author_email='[email protected]', | |
description='Description of my package', | |
packages=find_packages(), | |
install_requires=['onnxruntime>=1.0.0,<2'], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment