Skip to content

Instantly share code, notes, and snippets.

@tgpfeiffer
Created November 25, 2019 11:45
Show Gist options
  • Save tgpfeiffer/9fe7afead269964f91a3c3f7e94568a5 to your computer and use it in GitHub Desktop.
Save tgpfeiffer/9fe7afead269964f91a3c3f7e94568a5 to your computer and use it in GitHub Desktop.
example for pypa/setuptools#1917
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
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