Hello all,
Long time no post. I am working on a small home project and have a Macbook to go with it now instead of a PC.
NOTE:
Now this issue I realised this morning can be avoided if I just straight git clone my repo into my viertual env but I would like to know why this happens in case I do put the library on PyPI one day.
ISSUE:
I installed Python3 via homebrew as 2.7 becomes deprecated at the end of this year I thought I might as well make the shift over. (Is it necessary to run on Python3 or is sticking with 2.7 ok? Am just wondering)
So I went into Pycharm and set myself up a new project with a venv and tried to run the following:
pip3 install git+https://github.com/ben-hearn-sb/collection_cleanup.git#egg=collection_cleanup
Instead of an src folder being created and my git repo being cloned to it, I get the following error instead:
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/collection_cleanup.egg-info
writing pip-egg-info/collection_cleanup.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/collection_cleanup.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/collection_cleanup.egg-info/top_level.txt
writing manifest file 'pip-egg-info/collection_cleanup.egg-info/SOURCES.txt'
error: package directory 'distutils' does not exist
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/wq/h99zwqzd067fmnyqktf9q0dh0000gn/T/pip-install-uwdlmrmv/collection-cleanup/
I was looking around online for the solution to why distutils is missing this but could not find it at all. Does anyone know what might be happening?
Cheers,
Ben