poetry: how to adjust parallel config? - python-poetry

poetry is downloading packages in parallel (installer.parallel=true). What config can be adjusted if I need to control how many parallel downloads I want to have? The documentation did not list it.
Thanks

It is:
installer.max-workers
which is defined here:
https://python-poetry.org/docs/master/configuration/#installermax-workers

Related

IMAGE_INSTALL vs PACKAGE_FEATURES - what's the difference?

I am trying to create my own customized linux image and I am trying to figure out how to install packages I need and found that there were multiple ways of installing packages.
I read through the yoctoproject manual and read through definitions of 'IMAGE_INSTALL' and 'FEATURE_PACKAGES' in which IMAGE_INSTALL 'specifies the packages to install into an image through image.bbclass' and FEATURE_PACKAGES 'Defines one or more packages to include in an image'. I have seen both used in the core-image.bbclass file and both use packagegroup-* so it's still unclear which is appropriate to use for what kinds of package installs.
Any human explanation of the difference between the two and what each is intended to be used for?
Answer from #Nayfe :
IMAGE_INSTALL is used if you want to install any and all packages.
FEATURE_PACKAGES is only used if you want to install packages if a FEATURE is enabled through the use of IMAGE_FEATURES.
Original Comment:
FEATURE_PACKAGES is intended to use in conjunction with IMAGE_FEATURES, as when an image feature xxx is enabled, corresponding packages defined in FEATURE_PACKAGES_xxx are added to image.

Installing new GLIBC while keeping old version [duplicate]

This question already has answers here:
Multiple glibc libraries on a single host
(11 answers)
Closed 6 years ago.
Is there any way to install a new version of GLIBC locally in a folder? I will be able to add its library paths to LD_LIBRARY_PATH later without interfering with the system libraries?.
I didn't find such solution. For me that means all system should be upgraded for this purpose which is not I want.
P.S: Someone stated something here, but without any detail.
Is there any way to install a new version of GLIBC locally in a folder?
Yes, see this answer.
I will be able to add its library paths to LD_LIBRARY_PATH later without interfering with the system libraries?.
As the answer explains, you can't do that.
Yes, you can do it; I'd advise to do it with the permissions of the ordinary user to not break the whole system accidentally. It should be easier to unpack the package manually and not use OS package setup tools.
Then you should be able to add the path to LD_LIBRARY_PATH and it should be preferred over the system lib dir. You can use ldd command to see what runtime libraries will actually be used. It should show no not found entries, if it does you are missing something.
You'll need some experiments to make it actually work, but in this way you will break one console session at a time, which you can easily restart. An alternative way might be a hardlinked chroot environment, but that looks as an overkill.

How to create a shareable python install?

Is there a way to have an easily shareable python install? I have a python install on my PC, and sometimes coworkers want to use and modify my code. To do so, they often need to replicate my python config. Is there a way I could easily share my config with them? From another angle, is there a way I could send my code so it can be run with a clean install of Python?
Have you tried using virtualenv ? I think it will meet your need to share your python environment after you have customized it to run your code.
As #Jeff Mercado mentionned, Portable Python is the way to go for me. I can zip my whole python install into one file and share it. It contains all the libraries I need.

Requiring a package in composer that is not PSR compliant

I'd like to just pull the following package in using composer so it will be autoloaded, but can't figure out how (or if) that can be done:
https://code.google.com/p/freshbooks-php-library/
Is this possible, and if so, how?
I know the question is a little old, but I don't think you can include packages, archives or libraries without the target resource containing a (valid) composer.json in the project root.
However; Google has given me this repo https://github.com/Isinlor/freshbooks-php which would seem to do the trick.

Joomla one install file that installs component, modules and plugins

I'm looking for a way to setup the XML install file for my component and for it to also install the plugins and modules that go along with it all in a single installation. Has anyone done this before, how can this be achieved?
Many thanks
Try checking out http://www.joomlacontenteditor.net/ the basic editor installs the component and the affiliated plugin. Simply, it used the xml put the files in the correct places and uses an install.php script to finish. It does a lot of detailed things in some of the steps that you can ignore like all the component plugins etc.

Resources