Comments (5)
Note this worked fine in appveyor.yml
for Windows testing:
- cd %REPO_DIR%\\Tests
- "%CMD_IN_ENV% python run_tests.py --offline"
from multibuild.
Right - well - sort of - multibuild specifically changes into a temporary directory in order to run the tests, in order to make sure that the tests are running on the installed code not the source code.
This can get a bit ugly - for example, I had to copy lots of matplotlib files from the source to the installation directory in order to run the tests:
https://github.com/MacPython/matplotlib-wheels/blob/master/config.sh#L54
The problem is that, if you don't do this, it's difficult to know if you've properly tested what the user will get, when they install the wheel, but not the source.
from multibuild.
That looks like a very relevant example - thank you. I would ideally do much the same here, i.e. copy/link the test files into the temporary directory where there is no copy of the source code or build files present in a sister folder to confuse things.
So assuming we are in an arbitrary temporary directory, how best to determine the original source code folder? i.e. Can I assume ../project-name
as used in MPL_SRC_DIR=../matplotlib
here:
https://github.com/MacPython/matplotlib-wheels/blob/master/config.sh#L52
from multibuild.
Yes, you can assume that. The relevant set-up code is in a tiny function called install_run
:
https://github.com/matthew-brett/multibuild/blob/master/common_utils.sh#L241
Like any other bash function, you can override that in your config.sh
, if you like.
from multibuild.
Thank you. I still have some test oddities from the slightly different environment to resolve (unrelated to this particular issue) before exploring this...
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
- Recent git update has broken builds using docker images HOT 16
- 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.