from setuptools import setup
import os
os.system(
    'pip install git+https://github-private.corp.com/user/repo.git@master')
Python setuptools: How can I list a private repository under install_requires?