Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various Build System Improvements #971

Merged
merged 33 commits into from
Feb 12, 2022
Merged

Conversation

dylanmtaylor
Copy link
Contributor

@dylanmtaylor dylanmtaylor commented Feb 12, 2022

This closes #832.

@dylanmtaylor dylanmtaylor marked this pull request as ready for review February 12, 2022 19:08
@dylanmtaylor
Copy link
Contributor Author

Looks like it is not following symbolic links. Needs a little bit more work

@dylanmtaylor
Copy link
Contributor Author

By switching up the symlink so the actual files are in archinstall and the examples and profiles on the outer layer are the symlinks, it now seems to work.

@dylanmtaylor dylanmtaylor changed the title Convert workflow from flit to twine for publishing Convert build workflow from flit to standard build tool and twine for publishing Feb 12, 2022
@dylanmtaylor
Copy link
Contributor Author

Hmm, symlinks are not quite working, but it's building now...
image

@FFY00
Copy link
Member

FFY00 commented Feb 12, 2022

What is the motivation behind this change?

@dylanmtaylor
Copy link
Contributor Author

What is the motivation behind this change?

Based on the discussion here pypa/flit#522, it feels like it would make sense for us to pivot away from flit, so I am working on a PR to propose a change to more standard tooling. In addition, I am trying to address concerns that certain files which use symbolic links do not seem to be getting included in the final distribution due to 'not being a regular file'.

@FFY00
Copy link
Member

FFY00 commented Feb 12, 2022

Moving towards standard tooling does not require you to move away from flit, you can still use pypa/build with flit as a backend. If flit does not include symlinks in the distributions, but setuptools does, it could make sense to move, but it seems that even after that you are resorting to copying the files instead of keeping the symlinks, so I would guess it doesn't...

@dylanmtaylor
Copy link
Contributor Author

Moving towards standard tooling does not require you to move away from flit, you can still use pypa/build with flit as a backend. If flit does not include symlinks in the distributions, but setuptools does, it could make sense to move, but it seems that even after that you are resorting to copying the files instead of keeping the symlinks, so I would guess it doesn't...

Hmm, you might be right. At the moment, this is something I'm playing around with and not something we've committed to. I'll explore that path of using pypa/build with flit. That might be the best solution.

@dylanmtaylor dylanmtaylor marked this pull request as draft February 12, 2022 20:32
@dylanmtaylor dylanmtaylor changed the title Convert build workflow from flit to standard build tool and twine for publishing WIP: Update archinstall build workflow Feb 12, 2022
@dylanmtaylor
Copy link
Contributor Author

I don't know if flit dropped symlink support or what - it looks like it used to work, but now it's not working anymore. I don't see the links in the final tarball.

@dylanmtaylor dylanmtaylor changed the title WIP: Update archinstall build workflow Various Build System Improvements Feb 12, 2022
@dylanmtaylor dylanmtaylor marked this pull request as ready for review February 12, 2022 21:07
@dylanmtaylor
Copy link
Contributor Author

The files built by this now seem to be correctly following the symlinks. d909f80 seemed to be key to getting this working.

@Torxed Torxed merged commit 532f0fd into archlinux:master Feb 12, 2022
@dylanmtaylor dylanmtaylor deleted the twine branch February 12, 2022 21:29
@Torxed
Copy link
Member

Torxed commented Feb 12, 2022

Yea it used to follow symlinks, I have an issue reported upstream about it but haven’t gotten a response yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not pulling profiles when installing via pip?
3 participants