I just refactored my Python project to be a single top-level module rather than a package.
However, pip install does not work anymore: I get an error which says:
(forcelib_test) C:\code>pip install git+https://github.com/blokeley/forcelib
Collecting git+https://github.com/blokeley/forcelib
Cloning https://github.com/blokeley/forcelib to c:\users\tomoak~1\appdata\local\temp\pip-t10zegic-build
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\forcelib.egg-info
writing pip-egg-info\forcelib.egg-info\PKG-INFO
writing dependency_links to pip-egg-info\forcelib.egg-info\dependency_links.txt
writing requirements to pip-egg-info\forcelib.egg-info\requires.txt
writing top-level names to pip-egg-info\forcelib.egg-info\top_level.txt
writing manifest file 'pip-egg-info\forcelib.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
error: package directory 'forcelib' does not exist
I'm not trying to install a package called forcelib, only a module. The setup.py script correctly uses the py_modules
argument rather than packages
.
Is it possible to install a single module or do I have to revert to using a package?
Note: this question is about a different problem. They want to install an additional text file. I just want to install the single Python module. In fact, that question implies that what I'm trying to do should work without the error I got