-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Included the --build hook, with import adjustments
- As the build hook directly invokes the module code as a module before it is properly installed, a number of adjustments to imports and the creation of helpers must be done, such as delaying the import of ply and providing a fake helper that will defer the import error in the off chance that the module was invoked in such a manner without all the dependencies in place. - The --build hook should force the generation of the intended generated modules to ensure that the files are available for the setup.py build step to ensure their persistence into the egg-info metadata file along with its presence in the build step, which turns out to be a rather important step for distros. - As a consequnce, the post install generation hook can be removed (not to mention it can fail in various cases, such as whenever there are manual paths being specified to accommodate alternative build/install workflows). - Also cleaned up the optimize module method for the other Python 2 import case, where previously the manual optimize step may not result in the full cleanup before the regeneration step. - README entries referenced to be updated (being reworded).
- Loading branch information
1 parent
3a8d4ec
commit 4d07244
Showing
4 changed files
with
84 additions
and
26 deletions.
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
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
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
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