poetry icon indicating copy to clipboard operation
poetry copied to clipboard

poetry build only creates one .whl when CFFI has generated extension for multiple platforms (multiple build/lib.* dirs)

Open balgillo opened this issue 2 years ago • 4 comments

CFFI can generate libraries for multiple Python platforms, e.g. lib.linux-x86_64-3.9/mymod/_mylib.abi3.so and lib.linux-x86_64-cpython-39/mymod/_mylib.abi3.so (the latter could contain optimised code that relies on CPython features)

poetry build only builds the first one of these that it finds into a .whl file. The guilty code is here: wheel.py:191.

I believe it should build a .whl file for every platform for which CFFI has generated a shared library.

balgillo avatar Feb 17 '23 09:02 balgillo

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

ghost avatar Feb 02 '23 19:02 ghost

@minglu this is mostly likely fixed with the next SR of MAUI

You can test on the preview builds of MAUI or you can wait for it to reach stable.

PureWeen avatar Feb 02 '23 19:02 PureWeen

As a workaround, you could try setting them with a small delay, as I did here:

    _ = Task.Run(async () => {
        await Task.Delay(100);
        Dispatcher.Dispatch(() => {
            SelectedStates = new ObservableCollection<object>(ss);
            OnPropertyChanged(nameof(SelectedStates));
        });
    });

Glorfindel83 avatar Mar 01 '23 07:03 Glorfindel83

I have a similar issue... any fixes?

pierre01 avatar Mar 11 '23 02:03 pierre01

The same issue is happening on Windows as well.

Vroomer avatar Apr 03 '23 18:04 Vroomer

Verified this issue with Visual Studio Enterprise 17.7.0 Preview 2.0. Can repro on iOS platform with sample project. iOSCollectionViewPreselectedTest.

jinxinjuan avatar Jun 27 '23 06:06 jinxinjuan

Confirmed it is still happening on macOS using .NET 8 (MAUI 8.0.3). Workaround by @Glorfindel83 seems to do the trick.

beeradmoore avatar Dec 13 '23 01:12 beeradmoore

Duplicate of #18933

PureWeen avatar Jan 22 '24 15:01 PureWeen