Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Documentation about pre/post hooks #426

Closed
astrofrog opened this issue Nov 27, 2018 · 2 comments
Closed

Documentation about pre/post hooks #426

astrofrog opened this issue Nov 27, 2018 · 2 comments

Comments

@astrofrog
Copy link
Member

While documenting astropy-helpers in #416 I forgot to mention the pre/post hook functionality for setup_package.py - basically:

Look through setup_package.py modules for functions with names like
``pre_<command_name>_hook`` and ``post_<command_name>_hook`` where
``<command_name>`` is the name of a ``setup.py`` command (e.g. build_ext).

We use this in astropy._erfa and astropy.modeling to run the preprocessor on source code.

@astrofrog astrofrog changed the title While d Documentation about pre/post hooks Nov 27, 2018
@astrofrog
Copy link
Member Author

At the same time we should probably investigate if there is a more standard way to do this.

@astrofrog
Copy link
Member Author

I'm going to close this - with APE 17 merged I don't think we want to advertise features in astropy-helpers that were previously undocumented, and which will no longer be valid post-APE 17.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant