Installing & using PDM on macOS - some issues and observations #616
-
IntroductionFirstly, and most importantly, a big thanks to you @frostming for building PDM. I have seen your input supporting Pipenv over some time, so I was interested when I saw that you had created PDM. I have been checking in on PDM over a period of months, and, as I was starting a new, fairly major, project I thought it would be a good time to install it and have a look with a view to using it for the new project. Some background: I develop company devops solutions using Python (>=3.8) with Pipenv for virtual environments. My IDE is PyCharm Professional. I develop on macOS and usually deploy on Linux (was CentOS, but now Rocky Linux). I usually code in one major version of Python 3.8 / 3.9 and install Python into the macOS standard location in...
I tend to steer away from Python version changing tools - I try to keep it simple as we don't need to change around Python versions. I use Pipenv to create a virtual environment for each project, use the Python in /usr/local/bin as the Python interpreter and code in PyCharm. PDM Install - Some ProblemsSo - to PDM. I had some problems, and found the install and remove scripts did not work as expected. First problem was the curl install script referred to I saw that PDM was installed in I then started having some issues, I can't remember whether running the CURL script install worked OK for the 'remove' operation but when I tried to specify the path using However I then saw that PDM was installed in Post Install - Some ProblemsI then made a new test project https://pdm.fming.dev/usage/dependency/#initialize-a-project and added packages which worked fine. When I setup a PyCharm project it complained about the directory not being empty, I guess it would be OK to create the project in PyCharm first and then run Anyway, installed packages, setup Then I tried out the
but there was no directory Understanding PDM ArchitectureI was wanting to get a 'high level' understanding of the PDM architecture, I couldn't see anything regarding that in the documentation https://pdm.fming.dev I assume because it implements as a PEP 582 package management platform that the package management part can be considered to be separate from the project once the Of course I would not work that way in a deployed production system - the project would be cloned from the project on our Git server (which would not include the One other reason for the question above is because, as a test, I created a subfolder under the project root so In the app I added I setup this option - https://pdm.fming.dev/#enable-pep-582-globally - is that enabling this? I have this DocumentationDo you have people running PDM on macOS? If you would like some Mac (and PyCharm on Mac) focused documentation would be happy to help. I have some experience with MkDocs via Rocky Linux documentation. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thank you for such long feedback which is very valuable and helpful.
|
Beta Was this translation helpful? Give feedback.
Thank you for such long feedback which is very valuable and helpful.
I am a Mac user myself, but only on my home computer while using Windows at work.
The install script's
-p/--path
is to modify the location of the library files(site-packages and bin directories), if you don't bother to add toPATH
, you can also create a symlink of the executable file. Note if you don't give--path
option, the resulting executable can be symlink itself, so you would need to find the link origin.For the prompt issue, I put it there for better readability(noting this is run under the shell not anywhere else, like python REPL).