Пример #1
0
def configure_for_debian(d):
    make_m4(hpc=False, win=False, usear=True)
    #d.infobox("aclocal", width=0, height=0, title="configure")
    build_configure()
    os.system(
        "./configure CPPFLAGS=\"-I/usr/include/\" --datadir=\"/usr/share/\" --bindir=\"/usr/bin/\" >out.dat 2>out.dat &"
    )
    et = d.tailbox("out.dat", height=None, width=100)
Пример #2
0
def configure_for_centos(d):
    make_m4(hpc=False, win=False, usear=True)

    build_configure()

    os.system("./configure CPPFLAGS=\"-I/usr/include/\" >out.dat 2>out.dat &")
    et = d.tailbox("out.dat", height=None, width=100)

    make(d)
Пример #3
0
def configure_for_ubuntu(d):
    make_m4(hpc=False, win=False, usear=True)

    build_configure()

    os.system(
        "./configure CPPFLAGS=\"-I/usr/include/\" --datadir=\"/usr/share/\" --bindir=\"/usr/bin/\" >out.dat 2>out.dat &"
    )
    et = d.tailbox("out.dat", height=None, width=100)
Пример #4
0
def configure_for_centos_hpc(d):
    make_m4(hpc=True, win=False, usear=False)

    build_configure()

    os.system(
        "./configure CPPFLAGS=\"-I/usr/include/\" --enable-hpc --enable-noimages --enable-noplots --enable-noman --enable-nodesktop --enable-nodevicelib --enable-nohtml >out.dat 2>out.dat &"
    )

    et = d.tailbox("out.dat", height=None, width=100)
Пример #5
0
def configure_for_debian(d):
	make_m4(hpc=False, win=False,usear=True)
	#d.infobox("aclocal", width=0, height=0, title="configure")
	build_configure_all()
	os.system("cd gpvdm_core;./configure CPPFLAGS=\"-I/usr/include/\" --datadir=\"/usr/share/\" --bindir=\"/usr/bin/\" >../log.txt 2>../log.txt &")
	et=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_gui;./configure &>../log.txt  &")
	et=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_data;./configure &>../log.txt  &")
	et=d.tailbox("log.txt", height=None, width=100)
Пример #6
0
def configure_for_fedora(d):
	make_m4(hpc=False, win=False,usear=True)
	#d.infobox("aclocal", width=0, height=0, title="configure")
	build_configure_all()
	mpi_include="-I/usr/include/openmpi-x86_64/ -I/usr/include/MUMPS/ -L/usr/lib64/openmpi/lib/"
	os.system("cd gpvdm_core;./configure CPPFLAGS=\"-I/usr/include/suitesparse/ "+mpi_include+"\" --datadir=\"/usr/share/\" --bindir=\"/usr/bin/\" &>../log.txt  &")
	et=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_gui;./configure &>../log.txt  &")
	et=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_data;./configure &>../log.txt  &")
	et=d.tailbox("log.txt", height=None, width=100)
Пример #7
0
def configure_for_ubuntu_with_flat_install(d):
	make_m4(hpc=False, win=False,usear=True)

	build_configure_all()

	os.system("cd gpvdm_core;./configure CPPFLAGS=\"-I/usr/include/\"  --enable-noplots --enable-noman --docdir=/ --datadir=/ --bindir=/  --libdir=/   >../log.txt 2>../log.txt &")
	et=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_gui;./configure  --enable-nodesktop --enable-noman --docdir=/ --datadir=/ --bindir=/  --libdir=/  &>../log.txt  &")
	et=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_data;./configure  --docdir=/ --datadir=/ --bindir=/  --libdir=/ &>../log.txt  &")
	et=d.tailbox("log.txt", height=None, width=100)
Пример #8
0
def configure_for_arch(d):
	make_m4(hpc=False, win=False,usear=True)

	build_configure_all()

	os.system("cd gpvdm_core;./configure CPPFLAGS=\"-I/usr/include/\" >../log.txt 2>../log.txt &")
	et=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_gui;./configure &>../log.txt  &")
	et=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_data;./configure &>../log.txt  &")
	et=d.tailbox("log.txt", height=None, width=100)

	make_all(d)
Пример #9
0
def configure_for_centos_hpc(d):
	print("Running:configure_for_centos_hpc")
	make_m4(hpc=True, win=False,usear=False)

	build_configure_all()

	os.system("cd gpvdm_core;./configure CPPFLAGS=\"-I/usr/include/\" --enable-hpc --enable-noplots --enable-noman  --enable-nodevicelib --enable-nocluster")
	# >../log.txt 2>../log.txt &

	#et=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_gui;./configure --enable-noman --enable-hpc --enable-nodesktop  --enable-noimages --enable-nohtml") #&>../log.txt  &
	#et=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_data;./configure --enable-nodocs") #&>../log.txt  &
Пример #10
0
def configure_for_ubuntu(d):
	make_m4(hpc=False, win=False,usear=True)
	write_includes()
	build_configure_all()

	mpi_include="-I/usr/lib/x86_64-linux-gnu/openmpi/include/ -L/usr/lib64/openmpi/lib/"
	command="cd gpvdm_core;./configure CPPFLAGS=\"-I/usr/include/ -I/usr/include/superlu/ \" LDFLAGS=\"-lumfpack "+mpi_include+"\" --datadir=\"/usr/share/\" --bindir=\"/usr/bin/\" >../log.txt 2>../log.txt &"
	print(command)
	os.system(command)
	et=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_gui;./configure &>../log.txt  &")
	et=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_data;./configure &>../log.txt  &")
	et=d.tailbox("log.txt", height=None, width=100)
Пример #11
0
def configure_for_windows(d):
	make_m4(hpc=False, win=True,usear=True)
	write_includes(dbus="")
	build_configure_all()

	home=str(Path.home())
	flags="-I"+home+"/windll/libzip/libzip-0.11.2/lib/ -I"+home+"/windll/SuiteSparse-3.0.0/SuiteSparse/UFconfig/ -I"+home+"/windll/SuiteSparse-3.0.0/SuiteSparse/AMD/Include/ -I"+home+"/windll/SuiteSparse-3.0.0/SuiteSparse/UMFPACK/Include/"
	#+home+"-I/windll/OpenCL-Headers-master/"
	#+"-I/windll/gsl-1.16/
	os.system("cd gpvdm_core; ./configure --host=i686-w64-mingw32 CPPFLAGS=\""+flags+"\"  --enable-noplots --enable-noman  >../log.txt 2>../log.txt &")
	ret=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_gui;./configure --enable-nodesktop --enable-noman  &>../log.txt  &")
	et=d.tailbox("log.txt", height=None, width=100)

	os.system("cd gpvdm_data;./configure  &>../log.txt  &")
	et=d.tailbox("log.txt", height=None, width=100)
Пример #12
0
def select_distro_menu(d):
	if os.geteuid() == 0:
		d.msgbox("Don't do a build as root")
		return
	code, tag = d.menu("build for:",
		               choices=[("(back)", "back"),
								("(fedora)", "fedora (x86_64)"),
								("(debian)", "debian (x86_64)"),
								("(raspberry)", "Raspberry (ARM)"),
								("(centos)", "CENTOS (x86_64)"),
								("(mint)", "Mint (x86_64)"),
								("(ubuntu)", "Ubuntu (x86_64)"),
								("(suse)", "Open Suse (x86_64)"),
								("(arch)", "Arch (x86_64)"),
								("(debian-i386)","Debian (i386)"),
								("(default)", "generic Linux (x86_64)")
								])

	if code == d.OK:
		if tag=="(back)":
			configure_menu(d)

		if tag=="(default)":
			make_m4(hpc=False, win=False,usear=True)
			#d.infobox("aclocal", width=0, height=0, title="configure")
			build_configure_all()
			os.system("./configure CPPFLAGS=\"-I/usr/include/\"  &>../log.txt &")
			et=d.tailbox("log.txt", height=None, width=100)

			make_all(d)

			d.msgbox("Built")

		if tag=="(fedora)":
			configure_for_fedora(d)
			make_all(d)
			d.msgbox("Built")


		if tag=="(debian)":
			configure_for_debian(d)
			make_all(d)
			d.msgbox("Built")

		if tag=="(raspberry)":
			make_m4(hpc=False, win=False,usear=True)

			os.system("aclocal")
			os.system("autoconf")
			os.system("autoheader")
			os.system("automake")
			os.system("automake --add-missing")
			os.system("automake")
			os.system("cd gpvdm_core; ./configure CPPFLAGS=\"-I/usr/include/\" --host=arm-linux >../log.txt 2>../log.txt &")
			et=d.tailbox("log.txt", height=None, width=100)

			make_all(d)

			d.msgbox("Built")


		if tag=="(centos)":
			configure_for_centos(d)

			d.msgbox("Built")


		if tag=="(mint)":
			make_m4(hpc=False, win=False,usear=True)

			build_configure_all()

			os.system("cd gpvdm_core; ./configure CPPFLAGS=\"-I/usr/include/\" >../log.txt 2>../log.txt &")
			et=d.tailbox("log.txt", height=None, width=100)

			make_all(d)

			d.msgbox("Built")

		if tag=="(ubuntu)":
			configure_for_ubuntu(d)
			make_all(d)
			d.msgbox("Built")

		if tag=="(suse)":
			make_m4(hpc=False, win=False,usear=True)

			build_configure_all()

			os.system("cd gpvdm_core; ./configure CPPFLAGS=\"-I/usr/include/\" >../log.txt 2>../log.txt &")
			et=d.tailbox("log.txt", height=None, width=100)

			make_all(d)

			d.msgbox("Built")

		if tag=="(arch)":
			configure_for_arch(d)

			d.msgbox("Built")

		if tag=="(debian-i386)":

			make_m4(hpc=False, win=False,usear=True)
			#d.infobox("aclocal", width=0, height=0, title="configure")
			build_configure_all()
			os.system("cd gpvdm_core;./configure CPPFLAGS=\"-I/usr/include/\" --host=i686-linux-gnu --build=i686-linux-gnu CC=\"gcc -m32\" CXX=\"g++ -m32\" >../log.txt 2>../log.txt &")
			et=d.tailbox("log.txt", height=None, width=100)

			make_all(d)

			d.msgbox("Built")
Пример #13
0
def select_distro_menu(d):
    if os.geteuid() == 0:
        d.msgbox("Don't do a build as root")
        return
    code, tag = d.menu("build for:",
                       choices=[("(back)", "back"),
                                ("(fedora)", "fedora (x86_64)"),
                                ("(debian)", "debian (x86_64)"),
                                ("(raspberry)", "Raspberry (ARM)"),
                                ("(centos)", "CENTOS (x86_64)"),
                                ("(mint)", "Mint (x86_64)"),
                                ("(ubuntu)", "Ubuntu (x86_64)"),
                                ("(suse)", "Open Suse (x86_64)"),
                                ("(arch)", "Arch (x86_64)"),
                                ("(win)", "Windows (x86_64)"),
                                ("(debian-i386)", "Debian (i386)"),
                                ("(default)", "generic Linux (x86_64)")])

    if code == d.OK:
        if tag == "(back)":
            configure_menu(d)

        if tag == "(default)":
            make_m4(hpc=False, win=False, usear=True)
            #d.infobox("aclocal", width=0, height=0, title="configure")
            build_configure()
            os.system("./configure CPPFLAGS=\"-I/usr/include/\"  &>out.dat &")
            et = d.tailbox("out.dat", height=None, width=100)

            make(d)

            d.msgbox("Built")

        if tag == "(fedora)":
            configure_for_fedora(d)
            make(d)
            d.msgbox("Built")

        if tag == "(debian)":
            configure_for_debian(d)
            make(d)
            d.msgbox("Built")

        if tag == "(raspberry)":
            make_m4(hpc=False, win=False, usear=True)

            os.system("aclocal")
            os.system("autoconf")
            os.system("autoheader")
            os.system("automake")
            os.system("automake --add-missing")
            os.system("automake")
            os.system(
                "./configure CPPFLAGS=\"-I/usr/include/\" --host=arm-linux >out.dat 2>out.dat &"
            )
            et = d.tailbox("out.dat", height=None, width=100)

            make(d)

            d.msgbox("Built")

        if tag == "(centos)":
            configure_for_centos(d)

            d.msgbox("Built")

        if tag == "(mint)":
            make_m4(hpc=False, win=False, usear=True)

            build_configure()

            os.system(
                "./configure CPPFLAGS=\"-I/usr/include/\" >out.dat 2>out.dat &"
            )
            et = d.tailbox("out.dat", height=None, width=100)

            make(d)

            d.msgbox("Built")

        if tag == "(ubuntu)":
            configure_for_ubuntu(d)
            make(d)
            d.msgbox("Built")

        if tag == "(suse)":
            make_m4(hpc=False, win=False, usear=True)

            build_configure()

            os.system(
                "./configure CPPFLAGS=\"-I/usr/include/\" >out.dat 2>out.dat &"
            )
            et = d.tailbox("out.dat", height=None, width=100)

            make(d)

            d.msgbox("Built")

        if tag == "(arch)":
            make_m4(hpc=False, win=False, usear=True)

            build_configure()

            os.system(
                "./configure CPPFLAGS=\"-I/usr/include/\" >out.dat 2>out.dat &"
            )
            et = d.tailbox("out.dat", height=None, width=100)

            make(d)

            d.msgbox("Built")

        if tag == "(win)":
            make_m4(hpc=False, win=True, usear=True)

            build_configure()

            home = str(Path.home())
            flags = "-I" + home + "/windll/libzip/libzip-0.11.2/lib/ -I" + home + "/windll/gsl-1.16/ -I" + home + "/windll/umfpack/UFconfig/ -I" + home + "/windll/umfpack/AMD/Include/ -I" + home + "/windll/umfpack/UMFPACK/Include/ -I" + home + "/windll/OpenCL-Headers-master/"
            os.system(
                "./configure --host=i686-w64-mingw32 CPPFLAGS=\"" + flags +
                "\"  --enable-noplots --enable-noman --docdir=/gpvdm/ --datadir=/ --bindir=/gpvdm/  --libdir=/ --enable-nodesktop >out.dat 2>out.dat &"
            )
            et = d.tailbox("out.dat", height=None, width=100)

            make(d)

            #windows_install(d)

            d.msgbox("Built")

        if tag == "(debian-i386)":

            make_m4(hpc=False, win=False, usear=True)
            #d.infobox("aclocal", width=0, height=0, title="configure")
            build_configure()
            os.system(
                "./configure CPPFLAGS=\"-I/usr/include/\" --host=i686-linux-gnu --build=i686-linux-gnu CC=\"gcc -m32\" CXX=\"g++ -m32\" >out.dat 2>out.dat &"
            )
            et = d.tailbox("out.dat", height=None, width=100)

            make(d)

            d.msgbox("Built")