conda / conda-pack

Package conda environments for redistribution
https://conda.github.io/conda-pack/
BSD 3-Clause "New" or "Revised" License
528 stars 93 forks source link

Why convert new_prefix to lowercase in conda-unpack-script.py? #372

Open makejiang opened 1 month ago

makejiang commented 1 month ago

Hi, I saw following codes in conda-unpack-scripts.py:

if on_win:
    def binary_replace(data, placeholder, new_prefix):
        new_prefix = new_prefix.lower()
        if placeholder in data:
            return replace_pyzzer_entry_point_shebang(data, placeholder, new_prefix)
        elif placeholder.lower() in data:
            return replace_pyzzer_entry_point_shebang(data, placeholder.lower(), new_prefix)
        return data

Curious why this new_prefix must be lowercase?

Thanks.