Skip to content

env.Zip fails to look up dependency if run from different directory #2384

Open

Description

@bdbaddog

This issue was originally created at: 2009-03-31 11:39:58.
This issue was reported by: matferib.
matferib said at 2009-03-31 11:39:58

Given the following SConstruct file:

env = Environment()
env.Zip('bla.zip', 'teste', chdir = 'subdir')

and the following file tree

./SConstruct
./subdir          (<< directory)
./subdir/bla.zip
./subdir/teste    (<< directory)
./subdir/teste/bla.txt

The env.Zip command will fail. It will say

scons: *** [bla.zip] Source `teste' not found, needed by target `bla.zip'.

But teste exists and is inside the subdir directory, which is passed to the env.Zip command. But the command looks for a teste directory inside current directory, not inside subdir.

If I create a dummy teste dir in current directory, it will work. But seems like a bug to me.

I only tested this on linux.

gregnoel said at 2009-04-10 10:21:22

Bug party triage. Greg already has an issue to do something similar with tar, so have him research this issue and make a recommendation on how to proceed.

gregnoel said at 2009-04-18 17:24:17

The zipfile module is not available in Python until 1.6, so this must wait until at least SCons 2.1. It has similar needs to the TAR() builder and the tarfile module isn't available until Python 2.3, so it makes sense to develop the common technology here and have make issue #1890 be about compat support for tarfile.

#1890 is 2.x p3; recommend 2.x p2 for this issue.

gregnoel said at 2009-04-30 16:06:27

Bug party consensus.

garyo said at 2012-09-01 10:04:01

de-assigning all tickets assigned to Greg Noel (no longer working on SCons)

gregnoel said this issue blocks #1890 at 2009-04-18 17:25:40.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions