question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Package source priority (HPC cluster use case)

See original GitHub issue

_Originally posted by @mboisson in https://github.com/pypa/pip/issues/8606#issuecomment-877431454_

Here are what we can and can not do, in our environment (HPC clusters).

  1. We can’t run a server. This is for HPC clusters which are not under our control. The only thing we distribute is a filesystem. We can’t long-standing processes and we don’t control the network.
  2. We can’t run binary (manylinux or other) wheels from PyPI for two primary reasons reasons: missing libraries or libraries installed in non-standard locations, non-optimized CPU instructions
  3. We can’t host all of PyPI, that’s just too much, and pure-python wheels work just fine.
  4. We can’t change our requirement files/install differently, because we aren’t the ones doing the installation. We support end users (researchers), we don’t do their works, they install whatever package they need.

What we can do, and have been doing:

  1. Provide users a directory with wheels that we compile from source
  2. Define a PIP_CONFIG_FILE in the user’s environments to make sure their pip install ... commands use some settings. We have been using this to point their pip to our wheel directory, which used to be preferred over pypi. We are now also using that to put a constraint on pip < 21, since that’s now broken for us.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
uranusjrcommented, Jul 12, 2021

Wheels on PyPI can’t have build tags, IIRC.

I believe build tags are possible on PyPI, although practically nobody uses them.

1reaction
uranusjrcommented, Jul 20, 2021

By two packages with the same label, do you mean e.g. there are two pages for package foo, or there are two entries for file foo-1.0-none-any.whl? Because the former is an absolutely valid strategy to support architectures that PyPI doesn’t and potentially can’t host, and is used by many projects like piwheels and pytorch. Showing a warning would cause great disruption to those projects (because unassuming users would bug them thinking they are to be faulted), who have been meticulously following community guidelines and doing things “right”. The latter is likely harmless, but probably also not very useful?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using R on the HPC Clusters | Princeton Research Computing
This page shows how to install R packages and run R scripts on the Princeton HPC clusters. RStudio can be used in your...
Read more >
Introduction To HPC For New Users - UIowa Wiki
Cluster resources are divided into environments and resources. For example, users may choose between different available parallel environments ( ...
Read more >
HPC FAQs - Amazon Web Services
High Performance Computing (HPC) applications distribute computational workloads across a cluster of instances for parallel processing. Examples of HPC ...
Read more >
10 Executing large analyses on HPC clusters with slurm
This two hour workshop will introduce attendees to the slurm system for using, queuing and scheduling analyses on high performance compute clusters. We...
Read more >
High-performance computing (HPC) on Azure - Microsoft Learn
Learn about high-performance computing (HPC) on Azure, which uses many CPU or GPU-based computers to solve complex mathematical tasks.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found