joshua-auchincloss/hatch-cython

Replace hardcoded defaults with standard environment variables

Opened this issue ยท 1 comments

Hi ๐Ÿ‘‹ ,

thanks for the nice extension library for hatch. I'm getting started using it for an academic project, but noticed that the default include and library paths point to some homebrew directories that dont necessarily exist. I -think- (?) I can override these using my own conda paths, but it would be nice to have the default pull from envvars (e.g., LDPATH, etc).

Hi ๐Ÿ‘‹ ,

thanks for the nice extension library for hatch. I'm getting started using it for an academic project, but noticed that the default include and library paths point to some homebrew directories that dont necessarily exist. I -think- (?) I can override these using my own conda paths, but it would be nice to have the default pull from envvars (e.g., LDPATH, etc).

Hey! Thanks for the feedback ๐Ÿ™‚ The default include paths (and all include paths directly controlled by this lib) are actually checked for existence. In addition, all standard env vars are actually pulled and merged or overridden from env vars, as well as supported in configuration.

Let me know if this doesn't fit the use case you're describing, otherwise I think I'm alr doing what you're asking so I'll go ahead and close ๐Ÿ˜‹