Print

Print


> but, i also tried the master and i got this:
> 
> ```
> Successfully built xrootd-2022.310.tar.gz
> Processing ./xrootd/dist/xrootd-20220310-3fae8a870-.tar.gz
>   Preparing metadata (setup.py) ... done
> Processing ./xrootd/dist/xrootd-2022.310.tar.gz
>   Preparing metadata (setup.py) ... done
> ERROR: Cannot install xrootd 2022.310 (from /home.hdd/adrian/work-GRID/xrootd/dist/xrootd-2022.310.tar.gz) and xrootd 2022.310 (from /home.hdd/adrian/work-GRID/xrootd/dist/xrootd-20220310-3fae8a870-.tar.gz) because these package versions have conflicting dependencies.
> 
> The conflict is caused by:
>     The user requested xrootd 2022.310 (from /home.hdd/adrian/work-GRID/xrootd/dist/xrootd-20220310-3fae8a870-.tar.gz)
>     The user requested xrootd 2022.310 (from /home.hdd/adrian/work-GRID/xrootd/dist/xrootd-2022.310.tar.gz)
> ```
> 
> and i see in dist :
> 
> ```
> ALIBUILD##[Friday 11.03.22 19:08] adrian@hal : ~/work-GRID/xrootd  (master) $ 
> ls -l dist
> total 6432
> -rw-rw-r-- 1 adrian adrian 3292627 2022/Mar/11 19:07:05 xrootd-20220310-3fae8a870-.tar.gz
> -rw-rw-r-- 1 adrian adrian 3291024 2022/Mar/11 19:07:11 xrootd-2022.310.tar.gz
> ```

This is just because you're asking `pip` to install multiple versions of the same package with

```bash
python3 -m pip install --user --upgrade ${BNAME}/dist/xrootd-*.tar.gz
```

as you have multiple sdists under `dist/` that start their name with `xrootd`. If you want to use [`xrootd-*.tar.gz`](https://github.com/adriansev/bin-scripts/blob/f1f487b464ae0993f6f009fc8066789bb28e889a/xrootdpy_rebuild#L16) then you'll need to cleanup / delete the contents of `dist` before you build a new sdist with `build`.

It looks like you're [trying to do that here](https://github.com/adriansev/bin-scripts/blob/f1f487b464ae0993f6f009fc8066789bb28e889a/xrootdpy_rebuild#L8), but I think you're in the wrong directory(?). Also `publish.sh` already builds the sdist, so you can [remove this line](https://github.com/adriansev/bin-scripts/blob/f1f487b464ae0993f6f009fc8066789bb28e889a/xrootdpy_rebuild#L13)

Probably easier to just do

```bash
python3 -m pip --quiet install --upgrade build
command cp -f -r packaging/wheel/* .
rm dist/*
./publish.sh

cd ..
python3 -m pip install --user --upgrade ${BNAME}/dist/xrootd-*.tar.gz
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1641#issuecomment-1065323652
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1