Latest / Talk Python To Me / #406: Reimagining Python's Packaging Workflows
Transcript
- 0:00The great power of Python is it's over 400,000 packages on PyPI to serve as building blocks for your app.
- 0:06How do you get those needed packages on your dev machine and manage them within your project?
- 0:11What about production and QA servers?
- 0:13And I don't even know where to start if you're shipping built software to non-developer end users.
- 0:18There are many variations on how this works today, and where we should go from here has been a hot topic of discussion.
- 0:24So today, that's the topic of Talk Python.
- 0:27I have a great panel of guests, Steve Dower, Pradyun Gedam, Ofek Lev, and Paul Moore.
- 0:33This is Talk Python To Me, episode 406, recorded February 21st, 2023.
- 0:39Welcome to Talk Python To Me, a weekly podcast on Python.
- 0:55This is your host, Michael Kennedy.
- 0:57Follow me on Mastodon, where I'm @mkennedy, and follow the podcast using @talkpython, both on fosstodon.org.
- 1:04Be careful with impersonating accounts on other instances.
- 1:07There are many.
- 1:07Keep up with the show and listen to over seven years of past episodes at talkpython.fm.
- 1:13We've started streaming most of our episodes live on YouTube.
- 1:17Subscribe to our YouTube channel over at talkpython.fm/youtube to get notified about upcoming shows and be part of that episode.
- 1:25This episode is brought to you by Cox Automotive.
- 1:28Use your technical skills to transform the way the world buys, sells, and owns cars at talkpython.fm/cox and by Sentry.
- 1:36Don't let those errors go unnoticed.
- 1:38Use Sentry.
- 1:38Get started at talkpython.fm/sentry.
- 1:43Steve, Paul Ofeck, and Predian, welcome all to Talk Python To Me.
- 1:47Happy to have a year.
- 1:48Thanks, Dennis.
- 1:48Yeah, you bet.
- 1:49New for some of you.
- 1:50Welcome back for some others.
- 1:52So either way, still great.
- 1:54Let's just go around the video square here and have you all just do a quick introduction.
- 1:59I know, like I said, some of you have been here before, but it may have been a while.
- 2:02So, Steve, you want to kick us off?
- 2:04My name is Steve Dower.
- 2:04Zuba on Twitter and GitHub in various places.
- 2:07I'm CPython core developer.
- 2:09And I actually got involved in Python in the first place to help with packaging.
- 2:13And while I'm not kind of officially closely involved with packaging as much now, I still
- 2:18help contribute.
- 2:19Yeah, awesome.
- 2:20And you're also pretty notable for helping step up Python's game on Windows.
- 2:25Yeah, along with some of the others in this panel, actually.
- 2:28We've got a few of the Windows contributors here.
- 2:31Yeah.
- 2:31But yeah, that's kind of my focus area.
- 2:33Yeah, awesome.
- 2:33Paul, welcome.
- 2:34Happy to have you here.
- 2:35Hi, nice to be here.
- 2:37I'd say I'm Paul.
- 2:38I'm a core Python developer and a pip maintainer, two things I'm most involved in.
- 2:44I'm also, for my sins, the PEP delegate for packaging standards, if you like.
- 2:51So basically anything that's a PEP around interoperability between packaging tools comes to me ultimately
- 3:00for the decision on how it's going.
- 3:03I've been around in packaging for years now, so I've got quite a lot of the history behind me,
- 3:07which is also useful in this server discussion.
- 3:10Yeah, absolutely.
- 3:11Very much involved with pip.
- 3:13And that's at the heart of this, right?
- 3:16That's probably the earliest tool there, yeah.
- 3:18It's a venerable one.
- 3:19Yeah, welcome.
- 3:21Hey, yeah.
- 3:21I'm the primary maintainer of Hatch, which has been around for a few years.
- 3:27But more recently, I rewrote it from scratch to better satisfy kind of what I wanted and what more users wanted the UX to look like.
- 3:35It comes with a build back end hatchling, too, that is also a bit new.
- 3:40So yeah, my primary focus is the user experience, making things as easy and less prone to errors as possible with perspective and fade and stuff like that.
- 3:52Excellent.
- 3:52Yeah.
- 3:52So Hatch is in the general category of these higher level tools that work on top of the lower level Python ones to provide more consistent workflows for doing things.
- 4:03And that's kind of the heart of this discussion, honestly, is like, what should those workflows be?
- 4:08What tools should be responsible for it?
- 4:10And so on.
- 4:10We're not quite there yet because Pravyan still has to introduce himself.
- 4:14Indeed.
- 4:14Hi, I'm Pravyan.
- 4:15I am a maintainer on pip, FLIT, and a few more Python packaging stuff.
- 4:21I'm also the maintainer of Tomo, as well as, well, I guess I'm a new C-Python code developer as of.
- 4:29So yeah, that's me.
- 4:31Yeah, welcome.
- 4:32You're doing a lot of cool stuff.
- 4:33So we're all here together because, let me pull this up my screen really quick.
- 4:40Because of this discussion over on discuss.python.org, it's multi-part, which is notable for how long just a part of it is, Python packaging strategy discussion.
- 4:52And part one, if you scroll down just a little bit, it says that there are 272 replies and 150 minutes of reading time.
- 4:59And that's before we get to the related blogs, the GitHub issues, part two, the survey results, all of these things.
- 5:06So this is quite a discussion, and a lot of people seem to care a lot about it.
- 5:12I don't think you've brought your screen up there for us, Michael.
- 5:13Oh, I have not, have I?
- 5:14There we go.
- 5:15Thank you.
- 5:15Yeah.
- 5:16So let's start the discussion with maybe a summary of what's going on here.
- 5:21This was posted by Shamika, who unfortunately couldn't be here today, was going to be here, but can't make it.
- 5:26So I'm going to have to let whoever feels most qualified to jump in on this.
- 5:30Who wants to sort of set the stage for what this discussion was about?
- 5:34Paul, you look like you might be willing to fight.
- 5:37Paul looked like everybody else was backing off there.
- 5:39Yeah, one of the things that we've wanted to do for some time now is sort of get a better feel for how the user community views packaging.
- 5:52Shamika joined the packaging community as the project manager for the packaging effort as a whole.
- 6:00And one of the things she initiated in that was getting a survey done to effectively try and answer those questions.
- 6:09What do the users think of the packaging ecosystem?
- 6:12What do they think of how things are going?
- 6:15What do they want from Python packaging?
- 6:17There was a fair bit.
- 6:19There was a, I don't honestly know how big the response was, but it was quite, we got quite a decent response from it,
- 6:26which basically got summarized up in a couple of feedback documents.
- 6:30Yeah, I think, here we go.
- 6:32There's a PDF that I'll link to that has the actual survey responses.
- 6:37Yeah, and it turns out that putting a banner on PyPI.org seems to be the winner in terms of reaching out to people who care.
- 6:45We have almost 8.7k responses and 7.9k out of those are from PyPI.
- 6:51So that's more than 90%.
- 6:54Yeah, absolutely.
- 6:55Basically, from that, the discussions on Python discourse are following on from that,
- 7:01taking a number of the messages that came out of the survey,
- 7:06and essentially getting everybody in the packaging community together to talk about, you know,
- 7:13what does this mean?
- 7:14What do we expect we can do about this?
- 7:16How do we address the comments that have been made?
- 7:19Where do we take it?
- 7:21There are a number of discussions planned.
- 7:25I don't know how many.
- 7:27The first one, Pradian's either waving at me or suggesting it's five.
- 7:33The first one is the one that we've had already, the sort of main strategy.
- 7:39There are a number of follow-ups to that, one of which has just started, but most of which haven't taken place yet.
- 7:45So where we're at now, the initial discussion, which was the thread that you showed previously,
- 7:52that went on for about a month on discourse, generated quite a lot of discussion.
- 8:00And we now need to sort of digest that and understand where that leaves us and what actions we can take from it,
- 8:07what conclusions we can draw, how we pull that together into something that we can actually do something with, I guess.
- 8:13Yeah.
- 8:13And I think it's worth adding that this is not kind of an unusual thing for our packaging kind of participants.
- 8:20We have quite a significant history of a few comments kicking off a huge discussion that flows and fragments and drags on for hundreds of posts.
- 8:31And this one actually feels a bit different.
- 8:33This one feels like there's a real sort of commitment from certainly some of the main players who are involved in it.
- 8:39You know, if you look at the regular posters in that other thread, then, you know, you'll see a lot of us up near the top.
- 8:43But there's also a number of other people involved who are, it feels more serious this time.
- 8:48It feels like we really not just feeling or recognizing pain that we've always kind of seen and known is out there for a lot of people using it.
- 8:56But it feels like we're kind of at a place where something has to give.
- 8:59And I feel like we're getting closer and closer to being able to change whatever it is that needs to change to make that give.
- 9:05So I think it's an exciting set of discussions, though it is long and meandering and drawn out.
- 9:12And occasionally a little frustrating.
- 9:14I've taken a few breaks during it just to cool off.
- 9:18And I suspect some of the others in here have as well.
- 9:20But it is a lot of it's nothing new.
- 9:23It's nothing that we haven't heard or come across before.
- 9:26Having it laid out the way the survey did gave us a real kind of strong starting point.
- 9:31And there's just a lot of honestly discussion.
- 9:34A lot of things that have to be talked through because we're all different people with different backgrounds, different areas and trying to get aligned.
- 9:41Well enough to then align the random group of volunteers who make up this group.
- 9:47It's like we jokingly call it a packaging authority, but that's the biggest joke in the world.
- 9:53And so to actually align the volunteers working on independent projects takes a huge, you know, we've got to build up that momentum and that alignment before we can even start, you know, changing projects.
- 10:04Yeah, there it is.
- 10:05There's a couple of levels of this, right?
- 10:07I mean, as a broad Python community, we've got to get enough alignment that people will back it.
- 10:12But there's a bunch of people who would have to build whatever variant of this you might pick.
- 10:18And you've got to agree on that as well.
- 10:20And many of them are working on different tools.
- 10:23Pradion mentioned Flit and Pip.
- 10:25In fact, it's Hatch and Hatchling.
- 10:27Paul is Pip.
- 10:28Like, in some sense, the discussion might be, well, should pip take on the responsibilities of Flit?
- 10:34Or should it do less?
- 10:35And Hatch takes on, you know, there's this give and take, which I think is going to be an interesting thing to see play out.
- 10:43We've had a thousand flowers bloom sort of moment, I think, with the packaging.
- 10:47We've seen a bunch of different tools come along.
- 10:49But that's also led to, I think, confusion with people who are like, well, one blog post said use poetry.
- 10:55Now this one says use Hatch.
- 10:57This other one said don't use any of them.
- 10:58What do I do?
- 10:59I'm new.
- 10:59I'm confused.
- 11:00Yeah.
- 11:01Well, before we move on, just sort of summarizing your thoughts of this overall discussion, just kicking it off.
- 11:06You know, Ofec and Pradion, you haven't got a chance to weigh in.
- 11:09Ofec, what do you think?
- 11:10Yeah, I will say, although the main sentiment about the takeaway from the survey was that people wanted more unification and sort of guidance,
- 11:19I think the thread itself was not as much about that, but just like a myriad issues.
- 11:26So only one of the issues was actually about tools and user experience.
- 11:31Other people brought up other longstanding issues.
- 11:34Like we want more integration with Conda.
- 11:37That's a large topic there.
- 11:39Some other people want better support for essential modules and detection of like GPU, stuff like that.
- 11:47So there's lots of needs from various communities that also have to be worked out.
- 11:53It's not all just about user experience and things like that.
- 11:57Sure.
- 11:58That makes sense.
- 11:59Pradion, you wrote a huge, great long blog post on this, which we're going to get to a little bit, but, you know, higher level first.
- 12:05It's been productive.
- 12:06One of the things that Steve gave me the word for is level setting.
- 12:12There's a lot of sort of bringing everyone up to context on or bringing everyone up to the same amount of information and sort of understanding other use cases that you don't have yourself,
- 12:23even though you're right that supports that and things like that.
- 12:27Having all of the discussion happen has helped bring everyone up to the same page on these things.
- 12:33One thing I want to push back and what Steve just said, which is sort of the Python packaging authority does not have authority, is probably not true.
- 12:42We do have four here who gets the authority to decide on things directly delegated from the steering council.
- 12:49I heard the cats.
- 12:50That's about as far as it goes.
- 12:53There is a level of authority involved, but it's limited because we'll get onto the structure of the PyPA, I guess.
- 13:02But there's a lot of independent projects, a lot of independent people.
- 13:06And one of the things that this discussion did was bring everybody together and get us interacting maybe more than we had done.
- 13:14I think historically, it's probably worth also saying that historically, packaging started off very much one or two tools that did everything, things like disto tools and setup tools.
- 13:26They were it.
- 13:27And there were all sorts of issues at that time, which meant that we consciously tried to take a view that we were going to enable diversity, allow other tools to get into the mix.
- 13:41We started by looking at how we could make alternatives to setup tools work, how we could give people choice there.
- 13:49And from there, it's grown.
- 13:51And we've now got choice in a lot of areas that we never used to have choice in.
- 13:54That wasn't an accident.
- 13:56That was a conscious decision that we made to try to give some level of competition, some level of innovation that hadn't been there beforehand.
- 14:05One of the things that this discussion has done, well, one of the things the survey did has brought home to us the downside of that is that everybody's confused as heck, that nobody knows what to do now because we've just given them 100 million choices.
- 14:19And that's a very fair comment.
- 14:21It wasn't the intention, but it was an obvious consequence of that diversity that we promoted.
- 14:28Now what we need to do and what we're trying to do on the back of the discussion, on the back of what we've learned is try and pull that back together again.
- 14:37We've got all these tools now.
- 14:39We want to try and, if not exactly unify them, but certainly give a clearer picture, a more this is how you do things story.
- 14:47And part of the problem with that, one of the things that Getting Everybody Talking has done, it's made it clearer that we do need to work together.
- 14:55We can't keep competing because the users of the tools are just lost knowing what to do.
- 15:02So we need to bring things together, but nobody is, certainly I don't think at this point anybody is saying that we're going to shut down all the other tools, all the people working on them have wasted their time.
- 15:13That's not the idea at all.
- 15:14But we still need to navigate how we get a more unified approach within the context that we've got, which is a lot of people working on their own vision of how they are serving a subset of the overall group of users.
- 15:30Like Steve said, I think it's been really useful getting everybody together and everybody getting each other's perspectives.
- 15:35We now need to work out what to do with that, frankly.
- 15:39This portion of Talk Python To Me is brought to you by Cox Automotive.
- 15:44Cox Automotive isn't a car company.
- 15:47It's a technology company that's transforming the automotive industry.
- 15:51The team at Cox Automotive understands the future of car buying and ownership,
- 15:56and they're looking for software developers, data engineers, scrum masters, and other experts to help make that happen.
- 16:03If you're interested in innovating with brands like Kelly Blue Book, Auto Traders, and others, then you should check out Cox Automotive.
- 16:11Just visit talkpython.fm/cox to find out more.
- 16:15Thank you to Cox Automotive for sponsoring the show.
- 16:20One thing that stood out to me from reading the survey, and we can poke through some of the interesting questions and responses there.
- 16:27I feel like there's two users that almost need two approaches.
- 16:32There are people who are creating libraries and shipping them to PyPI, and they're kind of core Python developer folks.
- 16:40Not core developers, but they live and breathe Python, and they build Python things, and stuff like Pydantic or FastAPI and so on.
- 16:48They might need the flexibility and the diversity.
- 16:52Sarah, the new grad student in the biology department that needs to get pandas to work, and she knows that Python is her path forward.
- 17:00She shouldn't have to decide whether to use Flit or Hatch or straight pip plus maybe pip-tools.
- 17:06These are two very different use cases, and almost like bringing them together to, well, what's the best of those two solutions together seems almost maybe the wrong.
- 17:15You might make both groups unhappy going down that path.
- 17:18If we bring together the current 8,000 tools, it's going to make 7,999 groups unhappy.
- 17:24I mean, this is part of the challenge.
- 17:27Though I think an interesting thing there, and probably about halfway through this mega thread, it kind of clicked, at least for me.
- 17:34I think some people had mentioned it earlier, that there's really two big categories of tools.
- 17:39Kind of as you say, there's the tools for packaging and the tools for using packages, which includes what seems to be the biggest issue is the environment managers.
- 17:48It's the virtual environment creation, which is kind of half of poetry, but not the other half.
- 17:55A big part of Hatch, but not the other half.
- 17:57It's none of Flit.
- 17:59It's none of setup tools.
- 18:01It's like those are purely about building packages.
- 18:03And it's on this side, the building packages, where we've invested in kind of creating and driving that diversity.
- 18:10And I think that's worked really well.
- 18:12We've got a range of standards that make them interoperable at the right places so that pip can take kind of any of these backends and trigger them correctly.
- 18:23Source code written to provide metadata for any of these backends can be easily transferred between a lot of them.
- 18:29That seems to mostly work.
- 18:31And it's a situation where, again, as you say, the deep in Python maintainers have a choice in what backend they want to use.
- 18:37And what kind of clicked is people were saying, you know, we want less diversity.
- 18:43And a lot of us were going, well, the diversity is in the backend.
- 18:46So if you want less, then we have to combine the backends.
- 18:48But I think what clicked is that, no, that's not what they're wanting because it is the newcomer to Python who just wants it to work, who's trying to choose between all of these environment managers.
- 18:58And especially when you throw a condor in there as well, which is just so fundamentally different in how it behaves from the ones that kind of rely on PyPI directly.
- 19:07We already have that divide and the diversity has shown up on this side uncontrolled.
- 19:12Uncontrolled.
- 19:13We didn't set out to see poetry created or see Pip-Enf created or any of these, but it's there.
- 19:19And how do we rein in something that has grown up all by itself completely outside of anything that we've ever tried to control?
- 19:26One thing that struck me in that discussion was I'm really quite happy with a lot of the, like Steve says, the backend tools, all that sort of stuff.
- 19:36But it occurred to me that when I'm just writing little hobby programs and things like that for myself, I'm with everybody else.
- 19:43Packaging is horrible.
- 19:45I just want to say, start a project, start up a notebook, do something.
- 19:50And it's really hard.
- 19:52And it hadn't occurred to me until we had this discussion that that's very much the two sides of the user equation.
- 20:01We've really not put as much effort into the just wants to use Python to do their job side of the user base than we should.
- 20:10And tools like Hatch and PDM is another one.
- 20:13Poetry is another one.
- 20:14They are addressing that.
- 20:17And I actually went off and started exploring them.
- 20:20I thought, hey, there's cool stuff going on here that I really wasn't as conscious of as I could have been.
- 20:25So, yeah, absolutely.
- 20:27We need to look at that side as well now, I think.
- 20:30I agree.
- 20:30The Italian behavior we're talking about is like libraries versus applications.
- 20:36So, as people have mentioned, it is very easy now to build the library and test it.
- 20:40And that's due in large part to the standards that we made to allow diversity for the build back end.
- 20:46So, that's very good.
- 20:48But, yeah, it's where the applications are.
- 20:50That's like the hard part now.
- 20:52And I think at least one of the missing features that I think we should devote resources to, I know Brett isn't here, but locked files is something that we desperately need.
- 21:04And poetry has their own implementation of locked files and dependency resolution.
- 21:10So does PDM.
- 21:11But there's nothing like standard for that.
- 21:14And that should be the next step, I think, for applications.
- 21:17While we're talking about the future and sort of where we are, I will point out part of the reason we're seeing a bunch of this is because we've solved some of the harder problems already.
- 21:27We are at a point where, oh, I'm having difficulties installing pandas and figuring out how to work for that.
- 21:33And not, I can't install pandas.
- 21:35That's a good point.
- 21:36Or I can't publish pandas or whatever.
- 21:39So, we have been solving problems as we go.
- 21:42It's just we're going to keep seeing more and more problems, especially in a user base this large.
- 21:46There's always going to be more interesting and really difficult problems to solve.
- 21:50I think a lot of the people who are now just trying to get on with using Python for their day job,
- 21:56probably when we were starting the process of moving away from setup tools, they didn't even exist.
- 22:03Python wasn't that popular in those days.
- 22:06There's a new set of users who are coming along with a new set of problems.
- 22:11And if we don't keep our eye on what people are trying to do with Python, we'll get left behind, I guess.
- 22:18We won't be relevant.
- 22:19They won't have any solutions for what they're trying to do.
- 22:22And a lot of them came in because they believed Python was easy because we've got a reputation for being easy.
- 22:28They wouldn't be frustrated if they thought it was going to be impossible and then found out that it's impossible.
- 22:33They wouldn't be frustrated.
- 22:34They wouldn't be happy, but they'd be satisfied.
- 22:37It's because they've come in expecting this great experience that everyone's talking about.
- 22:40And we're just not able to deliver it in enough cases that the frustration comes in.
- 22:45And we get that.
- 22:46We all get hit by it as well.
- 22:49I am quite optimistic about it, though.
- 22:51I think one person brought up a good point in one of the recent discourse threads that, despite the hardships with packaging and everything we're discussing here, Python has gained massively in popularity and usage despite all these obstacles.
- 23:07So, yeah, I'm pretty optimistic that we can satisfy people's needs.
- 23:12I'm too.
- 23:13I think there's – I think Paddy didn't really hit on it.
- 23:16I remember long ago that certain things wouldn't install.
- 23:19Sorry, you couldn't get this to compile or this other thing wouldn't work right.
- 23:23And it hadn't really occurred to me explicitly, but I haven't seen those errors for a real long time.
- 23:27Yeah, and there's a lot of work that's gone into build backends to make that possible.
- 23:32Certainly for Linux users, the huge amount of effort that went into defining the many Linux standard, which is kind of the base layout of system libraries
- 23:42and where they're expected to be on a system so that people can build a binary package for Linux that can assume that those libraries are there and distribute those has meant that, yeah, a lot of the time when you go to install something, you'll get already built, already compiled packages that are just ready to go.
- 23:59And kind of the problem that that's raised up is we've taken the really obvious problem of you don't have a compiled package yet up to the point where you have a compiled package that is subtly incompatible with some other compiled package,
- 24:13which can be really subtle because it can be one of those 99% of the times it works fine and then the other time it just segfaults and everything dies.
- 24:21Or maybe subtle data corruption, like there's a million little things that can subtly go wrong there and we're starting to see some of those come up.
- 24:28Certainly the people in the data science side of things saw them come up quicker because they use a lot more of these complex packages and they do interact with each other and they do check things like numerical stability.
- 24:39A lot of the rest of us don't worry about that kind of stuff most of the time.
- 24:43And so we're like, yeah, this works.
- 24:45This works.
- 24:45Put it out there.
- 24:46Maybe if wheel existed before conda, people would have just pushed harder on wheel potentially and conda might not exist.
- 24:53Not saying it shouldn't exist, but that might, it might not have been a bad enough problem to make it.
- 24:57I agree.
- 24:58Like conda came into existence because the solutions that were there weren't able to satisfy it.
- 25:03And it was so far, like just the distance from where we were at that point.
- 25:08Because at that point, like eggs, probably no one watching even remembers eggs.
- 25:11I'm sure Paul does.
- 25:12At that point, it was, OFEC may as well.
- 25:15I'm not sure how long you've been involved, mate.
- 25:17But yeah, it was like, it was a very different world.
- 25:19And the distance to get there just looks so impossible.
- 25:21But yeah, if we'd been at wheels, then they may have said, well, this little tweak to wheels will make it work for us.
- 25:27And who knows where we might have been then.
- 25:29It's quite possible.
- 25:30I can't judge, honestly, but it's quite possible.
- 25:33But conda is where wheels will be in a number of years.
- 25:38I think there are fundamental reasons why that might not be the case.
- 25:42And we may have to find different ways of dealing with the problems.
- 25:45But yeah, these sort of really difficult, really basically not solved technical problems.
- 25:52It's not that Python is struggling with something that's easy.
- 25:57There are no languages or environments anywhere that have really solved these problems.
- 26:03So we're trying to find solutions as we go along.
- 26:07And I think in spite of what Steve is saying, I think having an 80%, 90% solution often is plenty good enough.
- 26:16I don't want to say that we should abandon the users who really need that because they are on the forefront of things like AI research and data science.
- 26:25And they're doing incredible work, which they can't do if Python falls apart on them.
- 26:30But at the same time, I think we're now in a position where we have to balance the general solution with the specialist solution and try and understand that.
- 26:38And for a lot of us, certainly for me, that's quite new.
- 26:41I'm not entirely comfortable yet with the idea of saying we need a different solution for this than we have for that.
- 26:48It's something we're all getting to grips with, I think.
- 26:50One aspect of this is also sort of kind of related to the Konda and Python success aspects of this is Python is a famously glue language.
- 27:01So when you're trying to package or use Python, you're not just using Python.
- 27:06You're using a whole stack of other languages and tech stacks along with it.
- 27:11Photography uses Rots under the hood.
- 27:13And there's Fortran code in NumPy.
- 27:17There's all sorts of diverse tooling underneath what just looks like a Python package.
- 27:25And that works.
- 27:27And you are able to use these.
- 27:30And it also introduces all the challenges that come with all of those themselves.
- 27:35So we're in a good spot.
- 27:38There's also a long way ahead.
- 27:40But we're also quite a ways from where we were.
- 27:44And I think one of the things to bring it around that the strategy discussion is doing is helping us understand where the gaps are right now and what the most painful points are right now, which is where the user survey was really helpful in telling us these are the things that at least the users that we follow and who did fill the survey think the problem and pain points are.
- 28:07I would say just quick estimate looking at the source of the respondents from the survey.
- 28:13that even these results lean more towards the highly committed software developer side and data science side of Python and not the super casual user.
- 28:24There's a huge bias.
- 28:25Yeah.
- 28:26My example of Sarah in the biology department, she's not going to PyPI and going through surveys.
- 28:32She might see the banner, which is, whatever, I care by biology or I care by economics.
- 28:36Right.
- 28:37So I think even this should be taken with a bit of a bit of a bias.
- 28:41I think one of the useful pieces of data that we did collect was user experience, like experience level.
- 28:47One of the things that's not a bit true but not done is sort of split this survey data that we have across various axes and see if we see other pieces of transparency here.
- 28:58I don't think any of the people who have acted in this space have had the time to be into the data.
- 29:05I, for one, don't have the expertise or skill set to do so.
- 29:08So like one of the things that would be really useful is having people look through this data and come up with new insights and flag things, which is an unangering amount of work.
- 29:19It is.
- 29:20That's very much a common problem we have is so many people use Python who we just have no way of getting in touch with.
- 29:28We have no way of knowing what their experience is because why would they talk to us?
- 29:34It's like you don't go and talk to the engineers who design your car.
- 29:38You just drive the flipping thing.
- 29:39And there's an awful lot of people who treat Python like that.
- 29:43And we can ask.
- 29:45We can put surveys up.
- 29:46But at the end of the day, like you say, the sort of people who would really, really like to get feedback from simply don't look at these sort of things.
- 29:55They aren't involved in going on to PyPI.
- 29:59You know, they type pip install something that the guy across the desk from them told them would work and they never see PyPI.
- 30:06In my workplace, I was very conscious that we had some people who were dabbling in Python who didn't interact at all with the community, never even contemplated doing so.
- 30:18And that's with me sitting next to them and saying, hey, Python's cool.
- 30:21And that's the norm.
- 30:24That's the actual Python user.
- 30:26Anyone who's looking at a survey and responding to it is already in the top 5%.
- 30:32This portion of Talk Python To Me is brought to you by Sentry.
- 30:38How would you like to remove a little stress from your life?
- 30:40Do you worry that users may be encountering errors, slowdowns, or crashes with your app right now?
- 30:46Would you even know it until they sent you that support email?
- 30:49How much better would it be to have the error or performance details immediately sent to you, including the call stack and values of local variables and the active user recorded in the report?
- 31:00With Sentry, this is not only possible, it's simple.
- 31:03In fact, we use Sentry on all the Talk Python web properties.
- 31:07We've actually fixed a bug triggered by a user and had the upgrade ready to roll out as we got the support email.
- 31:13And that was a great email to write back.
- 31:15Hey, we already saw your error and have already rolled out the fix.
- 31:19Imagine their surprise.
- 31:20Surprise and delight your users.
- 31:23Create your Sentry account at talkpython.fm/sentry.
- 31:26And if you sign up with the code Talk Python, all one word, it's good for two free months of Sentry's business plan, which will give you up to 20 times as many monthly events as well as other features.
- 31:38Create better software.
- 31:40Delight your users and support the podcast.
- 31:43Visit talkpython.fm/sentry and use the coupon code Talk Python.
- 31:50There's a really interesting term that Scott Hanselman came up with called the dark matter developer.
- 31:56The unseen 99%.
- 31:59And it's exactly what you're describing here, Paul, is you can't reach them because they don't come to the meetups.
- 32:05They don't come to the conferences.
- 32:06They don't subscribe to the blog.
- 32:08They just use it as a tool and go home.
- 32:10And they shouldn't.
- 32:11They don't, you know, it's not what they're doing.
- 32:13Some of the best feedback that we do get in these discussions comes from, as well as kind of people who get actual issues reported to them.
- 32:21So every time the pip maintainers are like, people are reporting this problem all the time.
- 32:25Okay, we know that's a problem because it's getting to the developers.
- 32:27But we also get feedback from people who do training and tutorials and people who kind of manage Python's presence in a workplace and in an organization.
- 32:37Because in that position, and that's kind of the position that I do as well at my work, we get more of that feedback.
- 32:42We get people complaining about things that they'd never think to take out in public, but they'll happily put on an internal list somewhere saying, hey, how come Python can't do this?
- 32:51Right.
- 32:51Or they'll ask for help because they actually have a job to do and they need to get it done.
- 32:55And, you know, we're all getting paid to be there.
- 32:58So there's no kind of fear or shame in saying, hey, can someone just tell me how to do this?
- 33:02And so by being kind of that central point in that place, just the same as when you're teaching a class, students are going to say, this didn't work.
- 33:09And now you see a problem.
- 33:11And when you start seeing the same things over and over again, that becomes kind of useful additional feedback to factor into these kind of surveys.
- 33:19And I don't think we've put a lot of weight in kind of the quantitative response here.
- 33:23Like it's quotes.
- 33:24It's stuff that people have put in the open spaces that, you know, the ones that have really resonated or been repeated a lot are the ones that we've pulled out into the discussion and have been working from.
- 33:34And kind of the actual numbers is like, yeah, they could mean anything realistically.
- 33:38And we can slice them to make them mean whatever we want.
- 33:41Exactly.
- 33:42So there's a careful balance there of drawing the right insights from this, knowing the limitations of what we've done.
- 33:50As is probably the case with every survey.
- 33:52Let me read out some of the, oh, sorry, go ahead, Nofick.
- 33:54And then I'll read off some of the comments that actually some of the respondents actually made.
- 33:58But go ahead.
- 33:59Oh, yeah, no, I was going to say, I agree with Steve that I think since we have no access to these, you know, 99% of actual developers, I think what maps closest to them would be users and industry.
- 34:12I got companies building applications, because if you're a user of Python, like kind of by definition, you're writing an app and not really building a library.
- 34:21So I think if we hear feedback from, you know, people at companies trying to build apps facing hardships, I think that would reflect the main, main chunk of users.
- 34:33That is a good point.
- 34:34I made the distinction that was almost like beginner versus expert, but really, I guess how I should have phrased it is closer to what you said, Ofick, is people building applications and presentation type things that they never will share with anybody through PyPI or something.
- 34:50They just want to get it to run.
- 34:51Maybe they'll deploy it, but they won't publish it.
- 34:54Versus people building Flask and Pydantic and SQLAlchemy and so on.
- 34:59These are really different use cases.
- 35:00So the person building that may be extremely talented and experienced, but they also have different constraints and different goals.
- 35:07So that's a really good point.
- 35:08All right.
- 35:09So I'm quick respondent thoughts here, just from this discussion thread.
- 35:13So one person says, unify multiple tools.
- 35:16It's good to have new ideas and new implementation, but it has to converge after a while.
- 35:20That's pretty interesting.
- 35:21Number two, there should be one and preferably only one obvious way to do it.
- 35:26Get rid of the fragmentation straight out of a Xenopython there.
- 35:30Number three, I definitely want Python to introduce the one true packaging tool.
- 35:34Ideally, both as easy as Rust's cargo and extensible package.
- 35:40Installing is easy.
- 35:41Package building is the wild west.
- 35:43So that kind of speaks to potentially the other side of creating the libraries.
- 35:47And then person forward said, blow it all away.
- 35:49Just everything goes away.
- 35:51Start over from scratch.
- 35:53Paul, you had actually a comment here in this discussion about the historical perspective.
- 35:59I think I even potentially pulled it up here saying, you know, having pip be exactly this tool might be really hard because pip has been built to do certain things and people now rely on it.
- 36:10Right.
- 36:11PIP is in a very odd position here.
- 36:13It is shipped with Python and it's shipped with Python for a very specific reason.
- 36:19You've got to have something to start the whole process off.
- 36:23You've got to be able to bootstrap.
- 36:25If you use Hatch, how do you get Hatch on your PC?
- 36:28You need something.
- 36:29And pip was incorporated into the Python.
- 36:32It's not technically part of the standard library.
- 36:35It's installed with the standard library.
- 36:36But let's not go there.
- 36:38But it was incorporated to give us that bootstrapping capability.
- 36:43At the time, that's really all pip was, was an installer.
- 36:48It had build capabilities because you needed to build things from source because that's how you installed a lot of things.
- 36:55I predated wheels and all that.
- 36:56Yeah.
- 36:56Yeah.
- 36:57Wheels were nowhere near as common at the time.
- 37:00Since then, things have changed.
- 37:02But pip is still the one thing that it's where people get into the whole packaging ecosystem.
- 37:08They have to start by saying pip install.
- 37:11And there's a very good point which was made.
- 37:14I mean, this is January.
- 37:15My opinions change every 15 minutes.
- 37:18So that was a long time ago now.
- 37:19But there was a good point made, which is that pip is in the position to be that unified tool.
- 37:29But it's not what it is now.
- 37:31Other tools like Hatch or PDM or Poetry are better at being the workflow tool that people talk about when they make analogies with Rust and Cargo, for example.
- 37:41But they don't come with Python.
- 37:42And to balance that problem out and come up with a solution there, we can't just look at packaging in isolation.
- 37:53One of the things Condor does, which is what allows them to solve certain problems that they solve, but at the same time is one of the reasons some people don't find Condor appropriate, is that it bundles Python.
- 38:07You install Condor and then use that to install Python.
- 38:11And that's a fundamentally different way of getting Python.
- 38:16Rust has a similar thing.
- 38:17You get rust up and that gives you rust and cargo.
- 38:19The model is there.
- 38:21The model is used in other places.
- 38:23But a change like that is not something that the packaging community can agree on by themselves.
- 38:31That would involve the core developers, the steering council.
- 38:33It's a very, very significant change to the whole model.
- 38:38And I think one of the things that we struggle with and one of the things I was sort of trying to get at at this point in the discussion was that we're not in a position to do that at the moment.
- 38:50Maybe we should be.
- 38:51One of the things coming out of this discussion is a broader look at what can we achieve, what can't we achieve.
- 38:58But we need to work out how to take that forward if we want to.
- 39:02So, yeah, I think pip is in an odd position because a lot of people say, why can't we add this to Pip?
- 39:10Because pip should be the thing to do.
- 39:13But speaking as a pip maintainer, I'm not even sure if that's what pip should be doing because we've got a lot of history.
- 39:20We've got a lot of legacy code in Pip.
- 39:23It will be a big disruptive change to use as a pip to add workflow.
- 39:27Whereas Hatch is doing a great job of it.
- 39:29PDM is doing fine.
- 39:30We do want to get into that area.
- 39:33And that's where, in all honesty, that's where a lot of the discussion started to veer towards big grand philosophy questions.
- 39:43And I think a lot of people got quite frustrated because they're hard questions and nobody's got an answer.
- 39:50People wanted action.
- 39:51I think one of the things that came out of the survey was a real sense of urgency.
- 39:55People said, burn it all down and create something new now.
- 39:58We want a unified solution now.
- 40:00And that put everybody under a sense of pressure.
- 40:03We ought to be doing better.
- 40:05But the reality is some of these things will take a long time.
- 40:09And thinking about them is the first step, which is what we're doing here.
- 40:13The analogies that people make, I find very interesting because some people do come in saying, make it more like Condor, which, as Paul said, kind of sits outside of Python.
- 40:21But then other people say, make it more like Cargo, make it more like NPM, which kind of have the virtual environment thing built into the packaging tool.
- 40:29So rather, but it still lives inside it.
- 40:32And we get people always coming in with these assumptions that because pip is part of the standard distributions of Python, I'm choosing those words carefully as a core developer.
- 40:43Because it comes with the Python.org distributions.
- 40:46They assume that because it's included, it's going to be like the ones that are included in other languages.
- 40:51And that's simply not the case.
- 40:53I mean, for starters, we existed well before those did.
- 40:55So we couldn't have copied what Rust does or what Node does.
- 41:00But having all those requests come in kind of just show that if we did burn it down, we don't even know what people actually want built back in its place.
- 41:08Because they're all asking for different things.
- 41:10I think part of the challenge, people are asking for you all to decide.
- 41:14I got that sense from a lot of this conversation, from some of the feedback, the survey results, was nobody is deciding in the core developer space.
- 41:24Tell us how to do it.
- 41:26We'll go with that.
- 41:27A lot of them would say.
- 41:28Obviously, not everyone.
- 41:29The C-Python co-developers, well, this isn't the most polite way of saying this, but they sort of don't care about packaging.
- 41:35The Python streamer effectively delegates all of this and says, you figure it out.
- 41:41And while there's a bunch of people here who are co-developers, they're wearing two hats.
- 41:47It's not a single hat.
- 41:48And to jump back in the conversation, I'm sorry, I've done that a few times already.
- 41:53Please do.
- 41:53Python is a very redistributor-driven distribution model.
- 41:57Whereas with RustUp, for example, everyone's getting Rust as the Rust team built it and as the Rust team packaged it and it ships to them.
- 42:05Many people are getting their Python from Homebrew or from PyEand and compiling it or from ASDF and doing the same thing.
- 42:14Or from Debian who have patched it in a bazillion ways.
- 42:20And a lot of the Python packaging problems that people keep hitting are actually these problems in a trench coat.
- 42:28These are Python distribution problems that are showing up when they use the packaging tooling.
- 42:32And that causes a lot of friction there as well.
- 42:36And solving that as probably hinted at is the last problem.
- 42:40And it's also tricky because problems mirror your organization.
- 42:45And as we're organized, we aren't set to solve this.
- 42:49Not easily.
- 42:50To be fair to the distributors, we like distributing Python as source code.
- 42:53Like the official release of CPython is a pile of source code that someone else should build and give to you.
- 43:00Because that's the Linux model, whichever model it is from 30 years back, is you got your operating system with the software built for it by someone who picked up all those source bundles and built it for you if you didn't do it yourself.
- 43:14And so it's never really been built around the core team, build the binaries and distribute those.
- 43:20And it certainly does confuse people because we do do that for Windows and we do do that for macOS because we've been able to because we never had distributors pick those up.
- 43:27I think with...
- 43:29In the same way that the Linux distributors did.
- 43:31With more Windows users nowadays than we used to have, I think that confusion is much more visible.
- 43:39The people coming from a Windows background think, well, I get Python from Python.org.
- 43:45People coming from a Linux background think Python.org has nothing.
- 43:49I get it from Ubuntu or it's just there.
- 43:52I don't even know where I get it from.
- 43:54That's something that is changing.
- 43:57I don't know if we will ever...
- 43:59I think languages like Rust with things like RustUp, that's a new model and it comes from much more recent how people expect things to be delivered to them.
- 44:09And Python's got a heck of a lot of history here that isn't as easy to change as people might like to think it is.
- 44:17I'm not saying we don't.
- 44:18I'm not saying this isn't a challenge.
- 44:20I guess to draw an analogy, it's similar to the source distribution versus wheel problem that we solve in some sense, wherein you can still build your own NumPy, but the NumPy developers ship a single NumPy and that has certain choices made that you can make differently.
- 44:38I guess I wasn't trying to be combative here.
- 44:42This is how packaging discussions always go.
- 44:45This is how packaging discussions.
- 44:46We always get combative.
- 44:47We sound like we're arguing and we're actually agreeing with each other.
- 44:50We're still just arguing together.
- 44:53But a big difference...
- 44:54Oh, sorry.
- 44:54In future, I would imagine what would be best for users would be not to download a Python executable that installs, but rather you would download the workflow tool.
- 45:05So whatever our version of cargo ends up being, that's what you would actually download and install on Windows or Mac.
- 45:13And that would manage your Python.
- 45:16In that case, then that would be easier to install for users and you wouldn't have the conflict of, you know, like, should pip do everything?
- 45:25Because then it wouldn't be pip we're talking about.
- 45:28Because right now, if you were to add workflow features to pip, that's a bit awkward because pip is in every Python.
- 45:34So you have like multiple workflow tools on your path, which is a bit odd.
- 45:39Yeah, then you're tied to figuring out how do I get to the right version of Python to then ask it the workflow questions?
- 45:45And what if I get that wrong?
- 45:47And if 3.10 is not in the path, it's installed, but why doesn't this work?
- 45:50So on and so on.
- 45:51Yeah, so a couple of the interesting tools that have been growing a bit in more recent times.
- 45:55We've had the PY launcher on Windows for a while.
- 45:58And Brett, unfortunately not here, is maintaining a PY launcher for other platforms as well.
- 46:04And so there's some suggestion, I think Brett's actually experimenting a bit with adding some of this functionality into that tool.
- 46:10So kind of the primary function of the PY tool is you have that one command to launch Python, and it takes an option to select which version you actually want to run.
- 46:17So you don't end up with multiple copies on path.
- 46:20You don't worry about which order they're in.
- 46:22You just say PY and you'll get the latest version, whatever the latest version is, because it can do a more intelligent sort.
- 46:28Or you say PY-3.10-3.11.
- 46:32Or it has shebangs on Windows even, or you say the version in there?
- 46:35Yeah.
- 46:35The Windows one has a lot of extra functionality.
- 46:39I briefly looked at merging the two and kind of adopting Brett's one for both platforms.
- 46:44But honestly, the Windows one, like 5% of the functionality is launching Python, and the other 95% does not exist in the cross-platform one because it exists in the platform itself.
- 46:56So there's a lot of other stuff that I don't even want to bring up in the Windows one.
- 46:59But we do already have this extra tool that's getting installed everywhere, that's independently installable, that might be a suitable place to take on some of that workload.
- 47:08I think the big challenge here, and I don't want to get into the Pip-Conda discussion again, but we have at this point 10 years worth of evidence of what happens when you put out a workflow tool that isn't strictly Python, but will give you Python.
- 47:25And it hasn't beaten all the other workflow tools.
- 47:27People still don't want to use the tool that does that.
- 47:30And so I don't know if we can simply assume that providing that tool or mandating that kind of tool is going to be a winner because it exists.
- 47:39It's been around for a long time, and it's not won.
- 47:41I think it's proven to be a fantastic experience if it suits you.
- 47:47That's what Condor...
- 47:48You listen to a Condor user, and they are massively enthusiastic about it, but it's because it fits what they want to do.
- 47:56You listen to somebody who doesn't like Condor, and they're equally frustrated with the choices it makes.
- 48:01And I think Steve's right.
- 48:03I think we have to learn all of the lessons, not just some of the lessons.
- 48:07And one of the lessons here is that sort of everything in one bundle tool is a mixed blessing.
- 48:14I'm going to call from January because that's right in front of me, and it seems very prudent.
- 48:19Many of the respondents wanting a unified tool will have an implicit assumption that their preferred workflow will be supported.
- 48:26There are many workflows in the queue, and trying to corral all of them into a single workflow is quite possibly a not-particle problem.
- 48:35I don't think anybody responded to the survey saying, please give a unified workflow tool that doesn't do what I currently do.
- 48:43Exactly.
- 48:44Please make what I do not work.
- 48:46Yes.
- 48:47Or make it hard.
- 48:48Yeah.
- 48:48Everyone thinks their own workflow is normal, and everyone else is the weird one.
- 48:52Speaking of workflows, I was thinking through this process and thinking of, well, what might an option be?
- 48:59What might some other tool look like?
- 49:02You all talk a lot about in the surveys and in the responses about a user experience, right?
- 49:08And we've got certainly notable people in the community who are well-known for creating APIs that just connect with folks, right?
- 49:15So I put together this idea of, what if there was a few more commands in Python itself that you didn't even have to think about?
- 49:22Do I have pip?
- 49:23Does it use hatch under the covers, or does it not?
- 49:27What if you had things like Python init, Python add requests, Python upgrade all, Python build?
- 49:33I think you've just misspelled hatch here, haven't you?
- 49:36I probably have.
- 49:38You've spelled hatch with a P-Y-T-H-O-N.
- 49:41I probably have.
- 49:41Yeah, exactly.
- 49:43Well, but I don't have to think if pip is installed.
- 49:46I don't think if pip is there.
- 49:48I'm almost afraid to put this up here as a proposal, because if it got adopted, then it might be the way, and I don't like it.
- 49:56I don't know if I would like it, but have you thought to go this far to say, we're not even going to talk about the tools that make this happen?
- 50:01This might be pip plus hatch making this happen behind the scenes.
- 50:05You might set an environment variable that says, please use poetry when you do this stuff, but I don't want to talk or know about poetry.
- 50:11I just want the output of it.
- 50:12Just Python install, that's all you tell them, versus pip install-requirements.txt.
- 50:17Oh, I meant pip 3.
- 50:18Wait, pip 3 doesn't exist.
- 50:19Why doesn't pip 3 exist?
- 50:20On and on and on, right?
- 50:22And then if you want to do more, you use hatch, or use pip-tools, or insane, not insane.
- 50:27I'd use that.
- 50:28I think there is a question, like Steve said, this is almost hatch.
- 50:32MakeApp is the one I'm looking at and thinking, please give it to me now.
- 50:35But it's almost hatch.
- 50:37The question is whether hatch is where it is, or PDM, or poetry, or whether it's Python.
- 50:44If you want it to be the Python command, then I think there's a whole, we're way too far through this now to talk about the role of the PyPA,
- 50:54and how it links to the core developers.
- 50:59But there's a whole disconnect that we struggle with, and we continue to struggle with, which is, what can we do in packaging, and what do we need the core to be involved with?
- 51:10Pradyum mentioned earlier, Python core, defer packaging decisions to the PyPA and to the packaging people, which is great as long as it works.
- 51:20But when it doesn't, when we need to integrate more, we're not really there yet in knowing how to address that sort of thing.
- 51:27So I think a tool that does something like that, it's certainly what I'm looking for.
- 51:31It's certainly what I think a lot of people see when they say workflow tool.
- 51:37And as I say, we've got people like Hatch and PDM and Poetry making that a reality.
- 51:42You just made tools into people.
- 51:44Yeah, sorry.
- 51:45I don't know all the names.
- 51:48But yeah, we have people making that sort of thing happen in the different tools that are around.
- 51:54Unifying is a question that I think we need to look at.
- 51:59And there's a clear message that having 10 different tools that do this sort of workflow is not what people want.
- 52:05But we don't know quite what the best model is yet.
- 52:07So there's some work to do there.
- 52:09The massive danger, Paul, is if you pick one and it turns out to not be really that great.
- 52:13Yeah.
- 52:14Which we've been burnt by before.
- 52:15Many times.
- 52:16So it makes us a lot more hesitant to pick something.
- 52:21I think all I'll say on this is, yeah, there's tools out there doing a lot of this.
- 52:25The best way to get it adopted into core Python is have a tool that is clearly the winner that we can integrate that tool directly.
- 52:33And so the transition path becomes if you're using Python 3.36 or whatever version it makes it into, then you have Python that command.
- 52:44If you want to work with a previous version, then first you install, let's say, Hatch and use Hatch that command.
- 52:49This is the kind of thing that might get integrated into that PY launcher I mentioned before.
- 52:54Because we have more ability to add more random commands to that.
- 52:57All of these are valid Python commands today.
- 53:00So people could theoretically be running these commands already and having it do something.
- 53:05I'm clearly not doing what you intend here.
- 53:07But they're all valid commands.
- 53:08And so we can't just push out a minor update that breaks them.
- 53:11The only thing we do need to watch with that is something that Pradian mentioned in his blog post, which is, we want to see a winner in one sense.
- 53:21But we want to be very careful not to end up in a competitive situation where rather than working together to get to the ideal workflow, we're working against each other.
- 53:33We do not want, it's not going to be good for users.
- 53:36It's not going to be good for the tool developers.
- 53:39It's not going to be good for the community if we're all trying to compete with each other on, I've got this whizzy new feature.
- 53:44We want to work together.
- 53:46And I think we want, I hesitate to use the word a winner, but we want a clear sort of best of breed that we can promote.
- 53:56Because, as we've said, we've been so burned by saying, this is what we should use, having everything go horribly wrong, that we're very reluctant to do that without evidence.
- 54:07So we want to see something become that tool that people want.
- 54:13Which is going to get difficult as long as we have competing solutions where it's like, oh, now we're split 50-50.
- 54:20And now what?
- 54:22There were decent solutions.
- 54:23Whichever you pick makes half the ecosystem angry.
- 54:26Yeah, but I think it is important to eventually get help from Core Python.
- 54:31I know we were just talking about how Conda has been around for like a decade and that workflow tool hasn't won.
- 54:38But like, if a decade ago, you know, on python.org, you had that tool, I think that would have won.
- 54:43It's just about advertising it on, you know, Core Python.
- 54:46So eventually we'll need their assistance.
- 54:49Yeah, that's a really good point.
- 54:50Indeed.
- 54:51And, you know, we definitely do want to make it work from the Core Python side.
- 54:54I might be the least kind of conflicted core developer here.
- 54:57So I can say that we do want to make this work.
- 55:00It's just seen as kind of outside of the core runtime responsibilities.
- 55:06One of the massive discussion threads actually kicked off because I mistakenly thought the steering council kind of owned responsibility for packaging and delegated it officially to the PyPA.
- 55:17But it turns out I was wrong and they just don't cover packaging at all.
- 55:20And so packaging is kind of outside of core focus entirely.
- 55:24It's officially not cared for by the core developers, not unofficially not cared for, if that makes sense.
- 55:30It's like we do care about it.
- 55:31We do want it to work.
- 55:32We do want it to be a good experience because we know it's critical to the overall Python experience.
- 55:37But it's also just scoped out of being our job, which is why, you know, we don't hold up releases based on packaging.
- 55:44And to get packaging features into the core runtime is it just feels like a huge amount of work to do because it's got to overcome that.
- 55:52This is so important to the core runtime, you know, to the reference interpreter that it's got to be in there, even though it's a packaging thing.
- 56:01So it's challenging, but there's definitely those of us who want to make it happen.
- 56:05And one of the benefits of being outside of the language is that it can move faster.
- 56:09Python has an annual release cycle compared to, to draw an analogy, the Rust plus cargo story of six weeks.
- 56:16And also not having this be in the core language makes it possible for alternative platforms and implementations that don't exist, that CPython does not care about today, to support those things.
- 56:28Wasm, which is a T3 support, PEP 11 for anyone who cares about where that word comes from.
- 56:35Pryodive exists.
- 56:36It runs things.
- 56:38CPython compiles on Wasm and it runs things.
- 56:42The packaging story for Python in the browser is going to be very different.
- 56:46The development workflow of Python in the browser is going to be very different.
- 56:49And if you try to shunt poetry and pip or those specific tools as differently shaped into those workflows, that's just not going to work.
- 57:00And you also don't want to rebuild that avenue of innovation using these tools.
- 57:06Or that's one of the pieces that is sort of a symptom of success or a problem of success, which is Hatch, Poetry, PDM, all of these exist.
- 57:16Because the other problems have been solved well enough.
- 57:20And they've been solved well enough that these are now the main main points.
- 57:24They're innovating in this space.
- 57:26And there's other aspects of Python getting innovated on in terms of where it runs, in terms of how you interact with it even.
- 57:35And as long as we don't stifle those, we're doing fine.
- 57:39And that's a really good point about it not being in the core distribution as well.
- 57:43Like if the ability to install packages was considered a core feature of the runtime, we wouldn't be able to release the runtime for a new platform until we'd figured that out.
- 57:53Because that would block the release.
- 57:54Because we'd have to say Python is incomplete until it has a complete packaging story on this brand new platform.
- 58:01So because that is separated, we can release Python.
- 58:03And so we have WASM releases of the CPython runtime because packaging is not part of that.
- 58:10And so we don't have to wait for that to come up.
- 58:13And yeah, because it's independent, Anaconda can come along and build PyScript and build packaging around the runtime because it doesn't have to be tightly integrated into it.
- 58:22So there's big advantages.
- 58:23Like there's a reason we pulled distri-tools out of the core library because it was restricting things.
- 58:28And so it opens up more things, but it does put more responsibility on distributors, essentially, to build a distribution of Python that includes the workflow tools, the packaging tools, the indexes, the repositories, whatever they need to give users of that distribution a good experience.
- 58:46And ultimately, a lot of this comes down to our distributions from Python.org have a very, very basic story for this.
- 58:54Like we have pip.
- 58:55That's basically our entire story.
- 58:57Linux distros have their own story, which again, is they keep a very narrow focus on what they want to care about.
- 59:04And users want things outside of that.
- 59:06Even condo users, very kind of narrow focus to what's in those repositories.
- 59:11And when you try and go outside of that, then things start breaking down just the same as all the distributions do.
- 59:17So it's got pluses and minuses.
- 59:19Python gets into places where it otherwise couldn't if packaging was a core feature of the runtime.
- 59:25But it does mean that packaging is determined by the distribution and not by the core team and not even by the core maintainers of the kind of satellite projects that are really, really close to the core runtime.
- 59:37Because setup tools can't determine how a WASM build is going to work because they're not controlling that distribution.
- 59:45So there's a separation of roles that is not really clear, even to most of us who are involved, if I'm honest, that we all have different jobs to do.
- 59:53And someone has to pull it all together.
- 59:55And unfortunately, a lot of the time, it's the end user has to connect the dots.
- 59:59Well, I think, guys, we are out of time, I would say.
- 1:00:01Although not out of discussion points, for sure.
- 1:00:04This could just go on and on.
- 1:00:06Super interesting conversation.
- 1:00:08It's really great to see it getting this focus.
- 1:00:10But yeah, it's going to be interesting to see where it goes.
- 1:00:13It's a challenge.
- 1:00:14But, Arjan, I really like your idea.
- 1:00:16It's that we're going to rise to it.
- 1:00:18We've now come, we've solved the hard enough problems now that this new thing is a problem.
- 1:00:22Ofak, go ahead.
- 1:00:23I have one quick question because I'm sure listeners would be curious, too.
- 1:00:27What do we think the next steps either are or should be for this?
- 1:00:32I know we split off into different discussions and we're trying to research the feedback that we got.
- 1:00:38But what do we think the next steps are?
- 1:00:41Or is that just the next step, just trying to understand what users want more?
- 1:00:45I don't think we know yet.
- 1:00:47Yeah, I mean, I've written far too many posts on where I think we've got to go next.
- 1:00:52But I do think we still have to, as Prajian mentioned earlier, level set.
- 1:00:56There's a lot of people involved.
- 1:00:58We all have different backgrounds, different expectations, different experiences.
- 1:01:02And we just need to talk and figure that out.
- 1:01:06And it's the kind of thing that would be ideal for us all to fly to some remote island somewhere for a week and just hash it all out in person.
- 1:01:13That's unfortunately not going to happen.
- 1:01:15So long discourse threads.
- 1:01:17We're not leaving Hawaii until we solve this.
- 1:01:20We've got to stay here.
- 1:01:20I'm okay with that.
- 1:01:21I will do it.
- 1:01:22Three months later, we're still there.
- 1:01:24Yeah.
- 1:01:26Absolutely.
- 1:01:28All right.
- 1:01:29Well, you all, thank you so much for being here.
- 1:01:31Thanks for taking the time and participating in this first, the original discussion.
- 1:01:35And then this here as well.
- 1:01:36I think it's going to highlight a lot of interesting and unseen aspects for people.
- 1:01:41But a word, listeners out there, they want to get maybe their feedback in.
- 1:01:46We saw some folks in the audience asking how they take the survey.
- 1:01:49The survey is closed.
- 1:01:49I'll give you a chance to sort of say like, what next for people out there listening?
- 1:01:54Steve, we'll go around the circle again.
- 1:01:55You're the top of it.
- 1:01:57Go first.
- 1:01:57If you're still on Twitter, then you can mention me in a tweet at Zuba.
- 1:02:01I do read those and I do collect a lot of kind of random information and ideas out of there.
- 1:02:08Otherwise, discourse and start a discussion.
- 1:02:11And don't be surprised if we point you at an existing one and say we've done this one to death already.
- 1:02:15So I'm always happy to hear more.
- 1:02:18And I guess just be aware that we do get very overloaded.
- 1:02:22Sure.
- 1:02:22Paul?
- 1:02:23Yeah, I think that's probably about the situation.
- 1:02:27Again, I'm not very active on social media.
- 1:02:30You can probably ping me on Twitter or Mastodon and I might notice.
- 1:02:34Certainly get involved.
- 1:02:36I can't promise.
- 1:02:38Certainly get involved on Discord.
- 1:02:40I think a lot of people are put off joining the conversations because it feels quite a hostile environment.
- 1:02:49There's a lot of, like Steve said, we've seen that before.
- 1:02:52We do want new perspectives.
- 1:02:54We do want people offering ideas.
- 1:02:57And it's hard.
- 1:02:59It's hard to speak up because there's so much history that people will assume you know and you won't.
- 1:03:07But please do, you know, come with half-baked ideas.
- 1:03:12We'll maybe tell you how to bake them.
- 1:03:15We'll maybe tell you we've already covered them.
- 1:03:17But we won't ignore them.
- 1:03:19We'll see them.
- 1:03:20And even if it looks like we're not picking up on things that you think are really important, they'll get in the pot.
- 1:03:27We will be aware of them.
- 1:03:28And that's the main thing.
- 1:03:29What we want more than anything is to be aware of what people think.
- 1:03:33Yep.
- 1:03:33Effect?
- 1:03:34Yeah, I agree with what's been said.
- 1:03:36I'm always on the discourse forums, reading feedback.
- 1:03:39And if any Twitter threads gain popularity, I think it's important to realize most people that work on this are volunteers at the end of the day.
- 1:03:48So we might not have much time to iterate as fast as people want.
- 1:03:52But we are trying our best, for sure.
- 1:03:55Excellent.
- 1:03:55And there was that big sponsorship to make major progress on PyPI.org.
- 1:04:00And maybe we'll see something like that at some point.
- 1:04:02Pradyan, you get the final word here.
- 1:04:04That's literally what I was going to say.
- 1:04:05Invest in Python, folks.
- 1:04:07If you work somewhere that uses Python, tell them to invest in the language.
- 1:04:13And part of why we're having these discussions is because the role that initiated the user service is a sponsored role from Bloomberg.
- 1:04:21And these sorts of investments into the ecosystem are vital to sort of make things keep working.
- 1:04:28Because there's only software we can go with a bunch of people doing this in their evenings.
- 1:04:34When they're, you know, slightly sort of bored and kind of want to keep themselves busy.
- 1:04:38And these tough problems are not going to solve themselves because someone had half an hour in their evening or an hour in their evening.
- 1:04:46Yep.
- 1:04:46All right.
- 1:04:47Good point.
- 1:04:47And thank you all for being here.
- 1:04:49Thanks very much.
- 1:04:50Thanks, Michael.
- 1:04:50Bye.
- 1:04:51Bye.
- 1:04:51Bye.
- 1:04:51Bye.
- 1:04:52Bye.
- 1:04:52Bye.
- 1:04:52This has been another episode of Talk Python To Me.
- 1:04:55Thank you to our sponsors.
- 1:04:56Be sure to check out what they're offering.
- 1:04:58It really helps support the show.
- 1:05:00Join Cox Automotive and use your technical skills
- 1:05:03to transform the way the world buys,
- 1:05:05sells, and owns cars.
- 1:05:07Find an exciting position that's right for you
- 1:05:10at talkpython.fm/cox.
- 1:05:12Take some stress out of your life.
- 1:05:15Get notified immediately about errors
- 1:05:17and performance issues in your web
- 1:05:19or mobile applications with Sentry.
- 1:05:21Just visit talkpython.fm/sentry
- 1:05:24and get started for free.
- 1:05:25And be sure to use the promo code talkpython,
- 1:05:28all one word.
- 1:05:29Want to level up your Python?
- 1:05:31We have one of the largest catalogs
- 1:05:33of Python video courses over at Talk Python.
- 1:05:35Our content ranges from true beginners
- 1:05:37to deeply advanced topics like memory and async.
- 1:05:40And best of all, there's not a subscription in sight.
- 1:05:42Check it out for yourself at training.talkpython.fm.
- 1:05:45Be sure to subscribe to the show,
- 1:05:47open your favorite podcast app,
- 1:05:49and search for Python.
- 1:05:50We should be right at the top.
- 1:05:51You can also find the iTunes feed at /itunes,
- 1:05:54the Google Play feed at /play,
- 1:05:57and the direct RSS feed at /rss on talkpython.fm.
- 1:06:01We're live streaming most of our recordings these days.
- 1:06:04If you want to be part of the show
- 1:06:05and have your comments featured on the air,
- 1:06:08be sure to subscribe to our YouTube channel
- 1:06:10at talkpython.fm/youtube.
- 1:06:12This is your host, Michael Kennedy.
- 1:06:14Thanks so much for listening.
- 1:06:15I really appreciate it.
- 1:06:16Now get out there and write some Python code.
- 1:06:20I'll see you next time.
- 1:06:39Thank you.