Skip to content

Can't copy 'sip/siplib/LICENSE': doesn't exist or not a regular file #2756

@EnziinSystem

Description

@EnziinSystem

My environment:

$uname -a
Linux 4960ca0abcfd 5.15.0-139-generic #149~20.04.1-Ubuntu SMP Wed Apr 16 08:29:56 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
$python3 -V  
Python 3.8.10

Steps:

cd /tmp
git clone --recurse-submodules https://github.com/wxWidgets/Phoenix.git
cd Phoenix
git fetch --tags
git checkout wxPython-4.2.1

Build:

python3 build.py dox etg --nodoc sip build

Logs

Finished command: build_wx (6m38.621s)
Running command: build_py
Checking for /tmp/Phoenix/bin/waf-2.0.24...
"/usr/bin/python3" /tmp/Phoenix/bin/waf-2.0.24 --wx_config=/usr/local/bin/wx-config --gtk3 --python="/usr/bin/python3" --out=build/waf/3.8/gtk3 configure build 
Setting top to                           : /tmp/Phoenix 
Setting out to                           : /tmp/Phoenix/build/waf/3.8/gtk3 
Checking for 'gcc' (C compiler)          : /usr/bin/gcc 
Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
Checking for program 'python'            : /usr/bin/python3 
Checking for python version >= 3.7.0     : 3.8.10 
python-config                            : /usr/bin/python3-config 
Asking python-config for pyext '--cflags --libs --ldflags' flags : yes 
Testing pyext configuration                                      : yes 
Finding libs for WX                                              : yes 
Finding libs for WXADV                                           : yes 
Finding libs for WXSTC                                           : yes 
Finding libs for WXHTML                                          : yes 
Finding libs for WXGL                                            : yes 
Finding libs for WXWEBVIEW                                       : yes 
Finding libs for WXXML                                           : yes 
Finding libs for WXXRC                                           : yes 
Finding libs for WXRICHTEXT                                      : yes 
Finding libs for WXMEDIA                                         : yes 
Finding libs for WXRIBBON                                        : yes 
Finding libs for WXPROPGRID                                      : yes 
Finding libs for WXAUI                                           : yes 
'configure' finished successfully (1.108s)
Waf: Entering directory `/tmp/Phoenix/build/waf/3.8/gtk3'
**** Compiler: gcc --version
     gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
     Copyright (C) 2019 Free Software Foundation, Inc.
     This is free software; see the source for copying conditions.  There is NO
     warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Traceback (most recent call last):
  File "/tmp/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Scripting.py", line 119, in waf_entry_point
    run_commands()
  File "/tmp/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Scripting.py", line 182, in run_commands
    ctx=run_command(cmd_name)
  File "/tmp/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Scripting.py", line 173, in run_command
    ctx.execute()
  File "/tmp/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Scripting.py", line 375, in execute
    return execute_method(self)
  File "/tmp/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Build.py", line 93, in execute
    self.execute_build()
  File "/tmp/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Build.py", line 96, in execute_build
    self.recurse([self.run_dir])
  File "/tmp/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Context.py", line 133, in recurse
    user_function(self)
  File "/tmp/Phoenix/wscript", line 538, in build
    updateLicenseFiles(cfg)
  File "/tmp/Phoenix/buildtools/config.py", line 1062, in updateLicenseFiles
    copy_file(opj('sip', 'siplib', 'LICENSE'), opj('license', 'sip-license.txt'),
  File "/usr/lib/python3.8/distutils/file_util.py", line 104, in copy_file
    raise DistutilsFileError(
distutils.errors.DistutilsFileError: can't copy 'sip/siplib/LICENSE': doesn't exist or not a regular file
Command '"/usr/bin/python3" /tmp/Phoenix/bin/waf-2.0.24 --wx_config=/usr/local/bin/wx-config --gtk3 --python="/usr/bin/python3" --out=build/waf/3.8/gtk3 configure build ' failed with exit code 2.
Finished command: build_py (0m1.549s)
Finished command: build (6m40.171s)

The sip/siplib directory has been removed but the source code is still copied.

Has anyone here ever built this project?

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