Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streamline sample folders #27

Closed
ischoegl opened this issue Jan 16, 2020 · 2 comments
Closed

Streamline sample folders #27

ischoegl opened this issue Jan 16, 2020 · 2 comments
Labels
feature-request New feature request

Comments

@ischoegl
Copy link
Member

Abstract

Use a single location for samples from various interfaces (C++/Fortran/Python/MATLAB).

Motivation

Currently, Python samples are installed into the Cantera package path, i.e.

Cantera has been successfully installed.

File locations:

  applications                C:/Users/<user>/cantera\bin
  library files               C:/Users/<user>/cantera\lib
  C++ headers                 C:/Users/<user>/cantera\include
  samples                     C:/Users/<user>/cantera\samples
  data files                  C:/Users/<user>/cantera\data
  Python package (cantera)    C:\Users\<user>\AppData\Local\Continuum\anaconda3\envs\cantera-dev\Lib\site-packages
  Python samples              C:\Users\<user>\AppData\Local\Continuum\anaconda3\envs\cantera-dev\Lib\site-package\cantera\examples
scons: done building targets.

which results in an unnecessarily long / inconvenient Python sample path that (depending on OS and installation options) even may be write-protected.

Possible Solutions

Move the Python samples to the samples folder.

References

This affects #22, as a possible solution would be to relocate all sample input files to the sample folder.

@speth
Copy link
Member

speth commented Jan 16, 2020

I'm not sure this is possible, at least for installation of the Python package through either the standalone MSI installer or Conda package. I think such packages have to install all of their data within the Python installation that is hosting them.

@ischoegl
Copy link
Member Author

That makes sense, and explains the status quo. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature request
Projects
None yet
Development

No branches or pull requests

2 participants