5

I'm building a package with some internal dependency from a local artifactory.

requirements.txt

--extra-index-url http://someurl/
some_internal_package

setup.py

....
install_reqs = parse_requirements('requirements.txt', session=PipSession())
reqs = [str(ir.req) for ir in install_reqs]
....
setup(
....
install_requires=[reqs],
...
)

Any idea how can i add it? is there some pattern for reqs instead of list of strings?

3
  • --extra-index-url is supported, from the docs Commented Jun 11, 2015 at 15:16
  • Yeah, I've looked into it a moment ago. Removed my comment as it is absolete Commented Jun 11, 2015 at 15:16
  • 1
    Possible duplicate of Using an extra python package index url with setup.py Commented Oct 4, 2017 at 22:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.