From: Peter Korsgaard <peter@korsgaard.com>
To: Alberto Fahrenkrog <Alberto.Fahrenkrog@rigtechnologies.com.au>
Cc: "buildroot@buildroot.org" <buildroot@buildroot.org>
Subject: Re: [Buildroot] [Help] Building from a private PyPi server
Date: Mon, 27 Feb 2023 15:57:22 +0100 [thread overview]
Message-ID: <87o7pfma0d.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <ME3P282MB1347B8B822841FCC27B501D0B9AE9@ME3P282MB1347.AUSP282.PROD.OUTLOOK.COM> (Alberto Fahrenkrog's message of "Mon, 27 Feb 2023 00:17:25 +0000")
>>>>> "Alberto" == Alberto Fahrenkrog <Alberto.Fahrenkrog@rigtechnologies.com.au> writes:
> Hello all,
> In our company we have custom Python packages stored in a private PyPi
> server. To install them we simply add the --extra-index-url in our
> requirements.txt file when using pip.
Are you aware of the security issues with --extra-index-url?
https://github.com/pypa/pip/issues/9612
> The packages are also available for manual download from the server,
> however all URLs to any .tar.gz file are in the form
> https://git.ourserver.com/packages/pypi/package-name/version-number/files/1234. This
> leads me to the following options (I think):
> * Try to get Buildroot to use the private PyPi server. I had a look
> at the "scanpypi" script and it generated the .mk and .in files for a
> regular PyPi package, but I could not find a way to tell scanpypi to
> use an extra url or private pypi address
scanpypi is indeed hard coded to use pypi and their JSON API
(https://pypi.org/pypi/{pkg}/json), so not trivial to use with a local
repo. Do your private server expose the same API? If so, I guess we
could add an argument to scanpypi to use a custom URI instead of
pypi.org.
> * Find a way, using wget, to download the package from the address
> above. Unfortunately I've had no luck with that yet. With the command:
> wget
> https://ourserver.com/-/packages/pypi/package-name/version_nr/files/5525
Notice: You have an additional /-/ compared to the URL above.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-02-27 14:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-27 0:17 [Buildroot] [Help] Building from a private PyPi server Alberto Fahrenkrog
2023-02-27 0:21 ` Alberto Fahrenkrog
2023-02-27 14:57 ` Peter Korsgaard [this message]
2023-02-28 7:43 ` Alberto Fahrenkrog
2023-02-28 9:37 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o7pfma0d.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=Alberto.Fahrenkrog@rigtechnologies.com.au \
--cc=buildroot@buildroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox