Closed lxy2304 closed 2 months ago
Hi @lxy2304 -- I checked in with @mmcauliffe about this, and all changes sound good. Notes:
Go ahead and make these changes and put any questions here. Thanks!
Update: The file storage location remained unchanged. As suggested by @mmcauliffe, an environment variable PGDB_HOME is added to handle the config file location.
Refactor for compatibility with entry_points in setup.py: Issue: The script needs to be compatible with entry_points. Proposed Fix: Refactor the script into a function.
Apple Silicon and InfluxDB installation: Issue: Homebrew uses a different folder for InfluxDB on Apple Silicon. Proposed Fix: Add if-entry to check for Apple Silicon and modify folder accordingly. However, it should be noted that:
Consider alternatives to Homebrew since it is not installed by default on Macs (eg: download influxDB from https).
Homebrew installs the InfluxDB executable in a system-wide location, whereas it should be installed in the environment’s directory when using Conda/venv. That turns into the same issue as mentioned below.
File storage locations in the pgdb script: Issue: Current file storage locations seem problematic during installation, need better resource management. Proposed Fix: Modify the script to identify the user's environment ('CONDA_PREFIX' in os.environ). For example: