Comments (16)
I think the proper fix is to add safe.directory
like in the NumPy fixes. See pypa/manylinux#1309
from multibuild.
I haven't had much luck here so far--please do ping me if you see another project do something useful in this regard, etc.
from multibuild.
I guess multibuild could add git config --global --add safe.directory $1
to the gh_clone
function but is that in common use?
from multibuild.
@tylerjereddy - did you try something like Matti's suggestion?
function gh_clone {
git clone https://github.com/$1
git config --global --add safe.directory $1
}
from multibuild.
Ah, I did something similar, but it was elsewhere in the control flow. There's also a suggestion from Henry over there: pypa/manylinux#1309 (comment)
Maybe I will try these ideas later today, thanks!
from multibuild.
I see another git step that is actually used by scipy wheels in clean_code
, would it be appropriate to add the git config
here?
Lines 282 to 298 in e0b6e4f
from multibuild.
That looks like a likely spot. git config
needs to be added before switching to the build directory, and issuing any other git commands.
from multibuild.
Note that in one case I needed to use --system
instead of --global
because a root directory wasn't found, that probably isn't a problem here.
from multibuild.
I see the same thing I saw with my previous attempts so far:
2022-05-02T01:50:22.8996044Z fatal: unsafe repository ('/io/scipy' is owned by someone else)
2022-05-02T01:50:22.8997327Z To add an exception for this directory, call:
2022-05-02T01:50:22.8997722Z
2022-05-02T01:50:22.8998420Z git config --global --add safe.directory /io/scipy
2022-05-02T01:50:22.9017913Z fatal: unsafe repository ('/io/scipy' is owned by someone else)
2022-05-02T01:50:22.9018869Z To add an exception for this directory, call:
2022-05-02T01:50:22.9019256Z
2022-05-02T01:50:22.9019942Z git config --global --add safe.directory /io/scipy
from multibuild.
(and then the version number looks weird again)
from multibuild.
I guess you have to apply this command also in the scipy
submodule.
from multibuild.
More diagnostic info/local reproducer: MacPython/scipy-wheels#167 (comment)
from multibuild.
Henry's scoping of the git rev-parse
command seems to be the key, the git config ..
command was useless for me both in CI and locally.
from multibuild.
Hmm. This doesn't directly apply for NumPy, looks like I need to start working on that.
from multibuild.
Found a fix using the config.sh
file, see MacPython/numpy-wheels#160. NumPy uses versioneer.
from multibuild.
What worked for me on github actions was adding
if [ $(uname) == "Linux" ]; then
IS_LINUX=1
! git config --global --add safe.directory "*"
fi
to the top of config.sh
. I could not figure out the exact directory to make safe.
from multibuild.
Related Issues (20)
- Testing manylinux_2_24 HOT 6
- Move to github actions for windows, mac, linux (x86, x86_64) HOT 5
- Port CI to Github Actions HOT 8
- get_modern_cmake - version 3?
- Cent OS 5 repos gone, manylinux1 builds fail HOT 1
- Trouble building 3.10 wheels on OSX HOT 8
- Building thin arm64 wheels for MacOS 12+ HOT 5
- PLAT=x86_64 generates universal wheel for OSX & Python 3.10
- No supported wheels found for macOS arm64 HOT 1
- Undefined symbol error with manylinux_2_28 wheel on Ubuntu 20.04 HOT 2
- LAPACK library is not found for macos builds HOT 5
- xenial_arm64v8:latest image is missing Py3.11 binary HOT 3
- Running safety prints a scary warning HOT 7
- platform = arm64 or universal2 both create x86_64 wheels HOT 1
- Use alpine 3.18 images by default for test
- python 3.11 and 3.12 builds failing on macosx and linux
- ./common_utils.sh: line 83: python: command not found HOT 4
- musllinux_1_1 is EOL, should use musllinux_1_2
- Safety is misreporting a disputed CVE
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 multibuild.