Skip to content

Update pgdb script for compatibility with updated setup.py and better resource management #190

@lxy2304

Description

@lxy2304
  1. 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.

  2. 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.

  3. 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:

    • The config.ini location is currently static (~/.pgdb), which prevents multiple environments from having separate configurations. (If updated, also change CONFIG_DIR in config.py in /polyglotdb to point to the new location.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions