SomberNight
19f806ddf4
build: don't allow setuptools to sneakily install build-time deps
see https://pip.pypa.io/en/stable/reference/pip_install/#controlling-setup-requires
> Setuptools offers the setup_requires setup() keyword for specifying
> dependencies that need to be present in order for the setup.py
> script to run. Internally, Setuptools uses easy_install to
> fulfill these dependencies.
> pip has no way to control how these dependencies are located.
> None of the package index options have an effect.
With these changes, we will now instead hard fail if this were to happen.
related: https://github.com/spesmilo/electrum/issues/5859#issuecomment-743621898
4 years ago
SomberNight
756d2eb004
mac build: call `git describe` after `git submodule update`
otherwise it could be that `git describe` will say "dirty" but the binary
will not actually be dirty as it just needed `git submodule update`
4 years ago
SomberNight
7ac968b406
mac build: use a virtualenv instead of global python packages
This helps to avoid older versions of pip-installed dependencies interfering with the build.
4 years ago
SomberNight
77f75f102b
mac build: bundle old PyQt5 so that .app runs on macOS 11 "Big Sur"
This is the time of the year Apple breaks our mac builds, as usual.
mac now has its own "binaries" requirements. This allows us to use
an older version of PyQt5 in the mac binaries. For some reason
if we bundle newer PyQt5, the built app will not start on macOS 11
(but will on older macOS).
related: #6461
in particular, see https://github.com/spesmilo/electrum/issues/6461#issuecomment-713888921
4 years ago
SomberNight
a4e342ac58
requirements: rename some files
4 years ago
SomberNight
4f46741c52
binaries: bump python version (3.7.7->3.7.9)
4 years ago
SomberNight
aac770404f
mac build: pin hashes of more build dependencies
namely pyinstaller
5 years ago
SomberNight
d9b4270035
mac build: bump libusb version
5 years ago
SomberNight
7143e9199f
binaries: bump python version (3.7.6->3.7.7)
5 years ago
SomberNight
095464b620
mac build: conform to macOS 10.15 Gatekeeper requirements
fixes #6128
some of this is based on:
e1354632d2/scripts/package/macos-notarize-app.sh
1eb8b71e7d
24e44e9784
5abec73eee
5 years ago
SomberNight
4cec098d2d
build: create a standalone build script for libsecp256k1
heavily based on Electron-Cash/Electron-Cash@eda015908e9d6ea9a0adfbda9db55b929c0926ba
5 years ago
SomberNight
c7a21220d5
mac build: bump pyinstaller version
5 years ago
SomberNight
0edd291efe
mac build: bump python version (3.6.4->3.7.6)
5 years ago
SomberNight
7c090f92ce
binaries: use "--no-dependencies" option for pip install
All (incl indirect) dependencies are already listed in deterministic-build/requirements*.txt.
This option makes it easier to manually rm a dependency from that list for e.g. testing.
5 years ago
SomberNight
ab95eff5aa
build: update pyinstaller to 3.5
6 years ago
SomberNight
f1516d60ec
mac build: fix locale in binaries
6 years ago
SomberNight
63e5119ceb
builds: parallelise "make" by setting "-j4"
6 years ago
SomberNight
699562c78d
bump libsecp256k1 version
6 years ago
SomberNight
89bb49e117
mac build: install pinned pip and setuptools earlier
also add --no-use-pep517 option for pyinstaller (see 4b560250a6
)
6 years ago
SomberNight
add3b36f32
build: replace remaining "python setup.py install" with "pip install"
6 years ago
SomberNight
16bac5fd73
rm qt icons file
so we don't need pyrcc5, which is not deterministic,
and so we don't need the submodule for the icons
based on electrumsv/electrumsv@bf8802c2eaf0bf75565b5423a95bcb85ec7eb781
6 years ago
Calin Culianu
5ec330680e
[MacOS] Fixed code signing on macos to codesign all embdedded binaries
This was pulled from Electron Cash #1110
6 years ago
ThomasV
df15571b82
osx build: revert to python 3.6.4
6 years ago
SomberNight
bec1860197
mac build: build qr scanner on separate machine
6 years ago
SomberNight
f54c387172
mac build: bump python version
6 years ago
ThomasV
d7bf8826fc
rename contrib/build-osx as contrib/osx. Move QRReader submodule there.
6 years ago
Calin Culianu
db89286ec3
[macOS] Added QR scanner facility using platform-native helper app.
6 years ago
Calin Culianu
d296a1be65
[macOS] Added optional code signing capability to the OSX build scripts.
6 years ago
Filip Gospodinov
bdecef0eaf
contrib: bump pyinstaller to 3.4
PyInstaller 3.4 highlights:
* patch for deterministic builds by electrum
* improved support for Qt5-based applications
* added support for Python 3.7
6 years ago
Calin Culianu
0da1e904fe
macOS: Add missing URI handler( #4557 )
Backport from Electron Cash -- fix missing bitcoin: URI types form macOS Info.plist
6 years ago
Filip Gospodinov
6c7bfe613f
contrib: remove git describe workaround ( #4683 )
`git describe` fails if no tag can be found, leading
to the whole build script to fail. This is not always
desired. To prevent `git describe` from failing in
this case the `--always` flag can be passed which
causes a short commit hash to be output when a tag
is not present.
6 years ago
Janus
097ac144d9
file reorganization with top-level module
7 years ago
Lucas Betschart
d467a5a8ec
Pyinstaller: Clean cache before building
Clean PyInstaller cache and remove temporary files before building.
7 years ago
Johann Bauer
c76375de91
Build libsecp256k1
7 years ago
Johann Bauer
64438573b1
Follow-up 354c737: Fix macOS build
7 years ago
root
354c737ce0
Track icons and locale version in submodule
7 years ago
Filip Gospodinov
6cf334244a
contrib: detect builds with uncommitted changes
The `--dirty` flag causes `git describe` to append
`-dirty` to the version string it outputs. This is
useful to detect if a build was - intentionally or
not - created with uncommitted changes.
https://git-scm.com/docs/git-describe#git-describe---dirtyltmarkgt
7 years ago
Johann Bauer
ae80fb4f97
Follow-up 6afe71fe
7 years ago
Johann Bauer
6afe71fe0e
Follow-up 3c28e3491
7 years ago
Johann Bauer
3c28e34919
Check package hashes when generating binaries
7 years ago
SomberNight
97c295924a
mac build script: update libusb
7 years ago
ThomasV
553006c7e5
follow-up previous commit
7 years ago
Johann Bauer
f854232837
Add script to build dmg on Linux
7 years ago
Johann Bauer
7e6fba0513
Make generated .app deterministic
7 years ago
Johann Bauer
e7c3712181
Add libusb dylib to binary so Trezor will work
Closes : #3946
7 years ago
Johann Bauer
e512e9c0e8
Simplify pyinstaller installation
7 years ago
Neil Booth
cc19de9db3
Parameterise the OSX builder
7 years ago
Johann Bauer
476ce3f1db
Follow-up 240ecee
We don't care if some other pyinstaller is installed
7 years ago
Johann Bauer
240ecee6ce
macOS build: Prefer our pyinstaller over system installed
7 years ago
Johann Bauer
afa0168e14
Add new requirements file for binaries in contrib
7 years ago