After saying I dropped my request, short replies keep coming. Let me reply in this context:
Would there be BUILT-IN tools that can be expected to already be everywhere which can be used at the top of a program you write and distribute to quickly check if the rest of the program <probably> has the resources it needs to run probably. I am not currently planning on designing or implementing anything. It was an academic question. I was thinking along the lines of slightly advanced ways functions can start with a group of assertions testing what is expected and quit if not set right. They use assert(). Some of what is being suggested may have useful pieces you can use in doing something like this. But I note that the ability to package things is not something most users need. You need a kernel of guaranteed software you can count on in order to test if other required elements and conditions can be met. Realistically, there are so many variations on python and how you can get copies distributed that I cannot assume that if I write a routine that uses numpy or pandas, as I have been doing, will be installed before a user makes use of the software. And, you can even build your own versions of python while leaving out or including things. It is nice to be flexible. But then you may need to stock to some version from prehistoric times using relatively few features AND being careful to not use features that were later changed or removed. Why bother? OK, here is the solution. At the beginning of the script put out a big warning telling the user that if they do not have all the required software they are proceeding at their own risk and take full responsibility if something weird happens before the software dies. Hitting ENTER will be considered acceptance of the terms! Again. Dropped. Moving on. If the goal here is to tutor, no need to share complex solutions but rather help students learn how to look at their problems and see what kinds of data and logic to apply in what order and then how to debug the inevitable mistakes like a missing comma. -----Original Message----- From: Tutor <tutor-bounces+avigross=verizon....@python.org> On Behalf Of Mats Wichmann Sent: Monday, November 26, 2018 10:23 AM To: paso...@gmail.com Cc: tutor@python.org Subject: Re: [Tutor] A required question On 11/25/18 8:54 PM, Asokan Pichai wrote: > On Sat, Nov 24, 2018, 14:33 Avi Gross <avigr...@verizon.net wrote: > >> David, >> >> As I suspected. Yes, I am aware how to do those things. Just wondered >> if anyone automated the process so a fairly simple interface worked. >> > Does the requirements.txt file (associated with pip IIRC) does most of > what you want? If so, then also worth looking at the pipfile and pipenv which are aiming to improve on the experience. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor