Skip to content

Install error with missing PREFIX #25

@clemisch

Description

@clemisch

Sconstruct doesn't update env in the path taken when os.environ["PREFIX"] is not set. This leads to an error during installion:

$ sudo scons install
scons: Reading SConscript files ...
KeyError: 'prefix':
  File "/home/clem/git/libobjcryst/SConstruct", line 103:
    pjoin(env['prefix'], 'lib'),
  File "/usr/lib/python3.13/site-packages/SCons/Environment.py", line 603:
    return self._dict[key]

I think this is because vars.Update(env) is missing in Sconstruct in line 72.

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