Comments (12)
Please read the documentation, specifically the instructions about building from a totally clean git workspace: https://github.com/wxWidgets/Phoenix/blob/master/README.rst#example-build-command-lines
from phoenix.
Same result as before on a fresh git clone --recurse-submodules with 'python build.py dox etg --nodoc sip build'!
'configure' finished successfully (0.557s)
Waf: Entering directory `/home/tom/projects/Phoenix/build/waf/3.9/gtk3'
**** Compiler: gcc --version
gcc (Debian 10.2.1-6) 10.2.1 20210110
Copyright (C) 2020 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 "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Scripting.py", line 119, in waf_entry_point
run_commands()
File "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Scripting.py", line 182, in run_commands
ctx=run_command(cmd_name)
File "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Scripting.py", line 173, in run_command
ctx.execute()
File "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Scripting.py", line 375, in execute
return execute_method(self)
File "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Build.py", line 93, in execute
self.execute_build()
File "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Build.py", line 96, in execute_build
self.recurse([self.run_dir])
File "/home/tom/projects/Phoenix/bin/.waf3-2.0.24-c88b74123ce8b9d1a27999f7cf96dff0/waflib/Context.py", line 133, in recurse
user_function(self)
File "/home/tom/projects/Phoenix/wscript", line 538, in build
updateLicenseFiles(cfg)
File "/home/tom/projects/Phoenix/buildtools/config.py", line 1062, in updateLicenseFiles
copy_file(opj('sip', 'siplib', 'LICENSE'), opj('license', 'sip-license.txt'),
File "/usr/lib/python3/dist-packages/setuptools/_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" /home/tom/projects/Phoenix/bin/waf-2.0.24 --wx_config=/home/tom/projects/Phoenix/build/wxbld/gtk3/wx-config --gtk3 --python="/usr/bin/python3" --out=build/waf/3.9/gtk3 configure build ' failed with exit code 2.
Finished command: build_py (0.737s)
Finished command: build (0m1.21s)
Commenting out line 1062 in buildtools/config.py and made a 'touch license/sip-license.txt' resolves the problem. A LICENSE file in sip/siplib don't resolves it, because it is deleted with every new build.
After that, the build with 'python3 build.py --gtk3 --use_syswx build_py' is ok.
from phoenix.
What version of sip did you use? Currently we build with 6.8.3.
from phoenix.
What version of sip did you use? Currently we build with 6.8.3.
It's sip 6.8.3. The header of all files in sip/cpp shows 'Generated by SIP 6.8.3 and all tools like sip-distinfo, sip-build shows also 6.8.3
tom@amarok:~$ sip-build -V
6.8.3
Where comes the file LICENSE from? I can't find a file with this name in any Python relevant folder or the Phoenix folder (only for src/png and src/zlib in ext/wxWidgets) Do you have a suggestion for the original path?
from phoenix.
It's generated during the build during this step:
https://github.com/wxWidgets/Phoenix/blob/master/build.py#L1402
from phoenix.
Okay, I pull again from github and log the build process. The log is attached. After build the tar archive in /tmp is deleted, so I try
sip-module --sdist --abi-version 12.9 --target-dir /tmp/ wx.siplib
on console. Here is the list of content:
tom@amarok:~/projects/Phoenix$ tar -tzvhf /tmp/wx_siplib-12.14.0.tar.gz
drwxr-xr-x tom/tom 0 2024-02-15 23:03 wx_siplib-12.14.0/
-rw-r--r-- tom/tom 52 2024-02-15 23:03 wx_siplib-12.14.0/MANIFEST.in
-rw-r--r-- tom/tom 467 2024-02-15 23:03 wx_siplib-12.14.0/PKG-INFO
-rw-r--r-- tom/tom 105 2024-02-15 23:03 wx_siplib-12.14.0/README
-rw-r--r-- tom/tom 7252 2024-02-15 23:03 wx_siplib-12.14.0/apiversions.c
-rw-r--r-- tom/tom 847 2024-02-15 23:03 wx_siplib-12.14.0/bool.cpp
-rw-r--r-- tom/tom 13534 2024-02-15 23:03 wx_siplib-12.14.0/descriptors.c
-rw-r--r-- tom/tom 8419 2024-02-15 23:03 wx_siplib-12.14.0/int_convertors.c
-rw-r--r-- tom/tom 13793 2024-02-15 23:03 wx_siplib-12.14.0/objmap.c
-rw-r--r-- tom/tom 57 2024-02-15 23:03 wx_siplib-12.14.0/pyproject.toml
-rw-r--r-- tom/tom 18562 2024-02-15 23:03 wx_siplib-12.14.0/qtlib.c
-rw-r--r-- tom/tom 293 2024-02-15 23:03 wx_siplib-12.14.0/setup.cfg
-rw-r--r-- tom/tom 1627 2024-02-15 23:03 wx_siplib-12.14.0/setup.py
-rw-r--r-- tom/tom 57197 2024-02-15 23:03 wx_siplib-12.14.0/sip.h
-rw-r--r-- tom/tom 21002 2024-02-15 23:03 wx_siplib-12.14.0/sip_array.c
-rw-r--r-- tom/tom 1285 2024-02-15 23:03 wx_siplib-12.14.0/sip_array.h
-rw-r--r-- tom/tom 6645 2024-02-15 23:03 wx_siplib-12.14.0/sipint.h
-rw-r--r-- tom/tom 353812 2024-02-15 23:03 wx_siplib-12.14.0/siplib.c
-rw-r--r-- tom/tom 4786 2024-02-15 23:03 wx_siplib-12.14.0/threads.c
-rw-r--r-- tom/tom 18981 2024-02-15 23:03 wx_siplib-12.14.0/voidptr.c
drwxr-xr-x tom/tom 0 2024-02-15 23:03 wx_siplib-12.14.0/wx_siplib.egg-info/
-rw-r--r-- tom/tom 467 2024-02-15 23:03 wx_siplib-12.14.0/wx_siplib.egg-info/PKG-INFO
-rw-r--r-- tom/tom 323 2024-02-15 23:03 wx_siplib-12.14.0/wx_siplib.egg-info/SOURCES.txt
-rw-r--r-- tom/tom 1 2024-02-15 23:03 wx_siplib-12.14.0/wx_siplib.egg-info/dependency_links.txt
-rw-r--r-- tom/tom 3 2024-02-15 23:03 wx_siplib-12.14.0/wx_siplib.egg-info/top_level.txt
It seems, there is no LICENSE file.
I'm not a Python programmer, I need a actually wxWidgets and wxPython to build KiCad-8.0.0-RC2. I am a developer for Hardware and Microcontrollers ;-)
from phoenix.
That is really strange.
$ python3 -m venv env
$ source env/bin/activate
(env) $ pip install sip
Collecting sip
Using cached sip-6.8.3-py3-none-any.whl (573 kB)
Collecting packaging
Using cached packaging-23.2-py3-none-any.whl (53 kB)
Collecting tomli
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Requirement already satisfied: setuptools in ./env/lib/python3.10/site-packages (from sip) (59.6.0)
Installing collected packages: tomli, packaging, sip
Successfully installed packaging-23.2 sip-6.8.3 tomli-2.0.1
(env) $ sip-module --sdist --abi-version 12.9 --target-dir /tmp/ wx.siplib
(env) $ tar -tvf /tmp/wx_siplib-12.14.0.tar.gz
drwxrwxr-x stalbert/stalbert 0 2024-02-15 17:28 wx_siplib-12.14.0/
-rw-rw-r-- stalbert/stalbert 2766 2024-02-15 17:28 wx_siplib-12.14.0/LICENSE
-rw-rw-r-- stalbert/stalbert 18161 2024-02-15 17:28 wx_siplib-12.14.0/LICENSE-GPL2
-rw-rw-r-- stalbert/stalbert 35297 2024-02-15 17:28 wx_siplib-12.14.0/LICENSE-GPL3
-rw-rw-r-- stalbert/stalbert 52 2024-02-15 17:28 wx_siplib-12.14.0/MANIFEST.in
-rw-rw-r-- stalbert/stalbert 500 2024-02-15 17:28 wx_siplib-12.14.0/PKG-INFO
-rw-rw-r-- stalbert/stalbert 105 2024-02-15 17:28 wx_siplib-12.14.0/README
-rw-rw-r-- stalbert/stalbert 7252 2024-02-15 17:28 wx_siplib-12.14.0/apiversions.c
-rw-rw-r-- stalbert/stalbert 847 2024-02-15 17:28 wx_siplib-12.14.0/bool.cpp
-rw-rw-r-- stalbert/stalbert 13534 2024-02-15 17:28 wx_siplib-12.14.0/descriptors.c
-rw-rw-r-- stalbert/stalbert 8419 2024-02-15 17:28 wx_siplib-12.14.0/int_convertors.c
-rw-rw-r-- stalbert/stalbert 13793 2024-02-15 17:28 wx_siplib-12.14.0/objmap.c
-rw-rw-r-- stalbert/stalbert 57 2024-02-15 17:28 wx_siplib-12.14.0/pyproject.toml
-rw-rw-r-- stalbert/stalbert 18562 2024-02-15 17:28 wx_siplib-12.14.0/qtlib.c
-rw-rw-r-- stalbert/stalbert 293 2024-02-15 17:28 wx_siplib-12.14.0/setup.cfg
-rw-rw-r-- stalbert/stalbert 1627 2024-02-15 17:28 wx_siplib-12.14.0/setup.py
-rw-rw-r-- stalbert/stalbert 57197 2024-02-15 17:28 wx_siplib-12.14.0/sip.h
-rw-rw-r-- stalbert/stalbert 21002 2024-02-15 17:28 wx_siplib-12.14.0/sip_array.c
-rw-rw-r-- stalbert/stalbert 1285 2024-02-15 17:28 wx_siplib-12.14.0/sip_array.h
-rw-rw-r-- stalbert/stalbert 6645 2024-02-15 17:28 wx_siplib-12.14.0/sipint.h
-rw-rw-r-- stalbert/stalbert 353812 2024-02-15 17:28 wx_siplib-12.14.0/siplib.c
-rw-rw-r-- stalbert/stalbert 4786 2024-02-15 17:28 wx_siplib-12.14.0/threads.c
-rw-rw-r-- stalbert/stalbert 18981 2024-02-15 17:28 wx_siplib-12.14.0/voidptr.c
drwxrwxr-x stalbert/stalbert 0 2024-02-15 17:28 wx_siplib-12.14.0/wx_siplib.egg-info/
-rw-rw-r-- stalbert/stalbert 500 2024-02-15 17:28 wx_siplib-12.14.0/wx_siplib.egg-info/PKG-INFO
-rw-rw-r-- stalbert/stalbert 357 2024-02-15 17:28 wx_siplib-12.14.0/wx_siplib.egg-info/SOURCES.txt
-rw-rw-r-- stalbert/stalbert 1 2024-02-15 17:28 wx_siplib-12.14.0/wx_siplib.egg-info/dependency_links.txt
-rw-rw-r-- stalbert/stalbert 3 2024-02-15 17:28 wx_siplib-12.14.0/wx_siplib.egg-info/top_level.txt
from phoenix.
I am not sure what the difference could be. setuptools version perhaps? What version of setuptools are you using?
from phoenix.
I think it was setuptools. I read something about Python and build it in a virtual environment. This was okay and the LICENSE file exists. My installed setuptools are 52 (Debian 11 Repository), in the virtual env 69. Thanks for your help!
from phoenix.
I try to compile the latest version for Python 3.11.5 on Linux Mint 5.15.0-94-generic. Because of your hint I tried upgrade setuptools:
Requirement already satisfied: setuptools in /home/jps/miniconda3/lib/python3.11/site-packages (69.1.0)
It was already Version 69, but i still missing the License File:
raise DistutilsFileError(
distutils.errors.DistutilsFileError: can't copy 'sip/siplib/LICENSE': doesn't exist or not a regular file
May be there is still a problem.
from phoenix.
Related Issues (20)
- Python 3.12 unit tests in test_dcDrawLists.py fail HOT 1
- wx.html2.WebView.RegisterHandler broken in 4.2.1 (regression from 4.1.1)
- wx.html2.WebView fails with longer load times in 4.2.1 (regression from 4.1.1) HOT 3
- RibbonButtonBar.DeleteButton fails in 4.2.1
- wx.adv.CalendarCtrl --> .GetDate().GetValue() , Int to long HOT 3
- wxPython 4.2.1 build failed with cython 3.0.8 and sip 6.8.1 HOT 3
- ultimatelistctrl.py ULC_AUTO_CHECK_PARENT not handled
- wxPython (4.2.0) reports an OpenGL context error shipping with moderngl/glcontext HOT 5
- Python 3.12 distutils package has been removed HOT 9
- Failed to Build wxPython 4.2.1 on WOA HOT 5
- Virtual ListCtrl does not reliably render more than about 364k rows HOT 13
- SOLVED: Demo fails because distutils package has been removed as of Python 3.12 PEP 632 HOT 4
- Incompatibility of GetColPos/GetRowPos and GetSelectionBlockTopLeft/GetSelectionBlockBottomRight functions in wxGrid HOT 3
- Incorrect updating of wxGrid when sorting rows using the SetRowPos function
- Call to wx.aui.AuiNotebook() causes segmentation fault in 4.2.1 on ARM Mac with conda's py 3.10
- Snapshot build(s) have stopped building HOT 7
- Importing wx.media on Windows HOT 5
- Unable to install wxPython on OpenSUSE 15.5 in venv - python-config not found. HOT 7
- PropertyGridManager does not handle the issue of parent property display disorder. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phoenix.