-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding solow subpackage for the installer
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4ec8120
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmcky
I didn't realize you needed to specifically add modules and submodules. I thought everything was added by default and you had to actively exclude modules and/or submodules?
4ec8120
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidrpugh As far as I understand packages require to be explicitly added
From https://docs.python.org/2/distutils/setupscript.html
Thus models.solow is really another
package
.4ec8120
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidrpugh Just to clarify - If we had written
solow
as amodule
(i.e. in files withinQuantEcon.py/models/
) then it would get added to the installation. The difference here being thatQuantEcon.py/models/solow
is a directory of python modules and is thus apackage
.4ec8120
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmcky I assume this was the reason that the statement
from quantecon import solow
failed when I upgraded to the new version ofquantecon
:solow
hadn't been installed at all because it wasn't properly included in the setup script. Thanks for the clarification.4ec8120
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmcky Nice work. We were all looking in the wrong place, but great work.
4ec8120
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidrpugh Indeed - that is why. The
__init__.py
files were all setup correctly - but it was just that distutils wasn't packaging the solow code throughpip install --upgrade
orpython setup.py install
etc. Thanks for sharing those developer flags for pip - I hadn't come across those before.Thanks @cc7768.