mavericktse / pymingwbuild Goto Github PK
View Code? Open in Web Editor NEWPython(Anaconda) script to build Mingw-w64 cross-toolchain
License: MIT License
Python(Anaconda) script to build Mingw-w64 cross-toolchain
License: MIT License
Extracting url with regex hack is dirty. Why don't you use Github API?
import json
from urllib import request, response
j = json.loads(request.urlopen("https://api.github.com/repos/mirror/mingw-w64/tags").read().decode())
final_url = j[1]
# Search latest version except rc
for i, o in enumerate(j):
if not "rc" in o["name"]:
final_url = o["tarball_url"]
break
# Search for preferred version
for i, o in enumerate(j):
if o["name"] == preferred_version:
final_url = o["tarball_url"]
break
The scrypt seems to just ignore command line [options]. I tried to set the gcc version, but thought I must be doing something wrong, so I ended up downloading the version I wanted, put it in the pkgs folder, and changed the name, so the scrypt would skip extracting it. I tried python3 tc-builder.py --skip-gmp --skip-mpfr --skip-isl --skip-mpc
, but it configures and builds each one still. It doesn't just say that it's building them, it must be, because of the time it spends on each option. I just wanted to bring it to your attention - someone with a slow cpu, and not very many cores, could spend a lot of unnecessary time on those steps. Maybe I'm doing something wrong. Thanks.
Also, why will it not download the latest gcc? it only wants to get 9.3.0, but 10.1.0 is available on the same server.
I guess I should add, that pretty much all the dependencies are outdated.
Downloaded from HTTP {'gmp': './pkgs/gmp-6.1.0', 'isl': './pkgs/isl-0.18', 'mingw-w64': './pkgs/mingw-w64-7.0.0', 'pkgconf': './pkgs/pkgconf-1.6.3', 'gcc': './pkgs/gcc-9.3.0', 'mpc': './pkgs/mpc-1.0.3', 'binutils': './pkgs/binutils-2.34', 'mpfr': './pkgs/mpfr', 'cloog': './pkgs/cloog-0.18.1'}
gmp-6.2.0, isl-0.21, gcc-10.1.0, mpc-1.1.0 are more recent versions, they had to be downloaded and put in pkgs folder to trick the scrypt.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.