from sys import argv, executable
from collections import namedtuple
from subprocess import Popen
-from distutils.cmd import Command
-from setuptools import setup
+from setuptools import setup, Command
from setuptools.command.develop import develop
from multiprocessing import cpu_count
from direct.dist.commands import bdist_apps
from p3d_appimage import AppImageBuilder
from p3d_flatpak import FlatpakBuilder
import lib.engine.log # so logging's info/debug are logged
+from game.app import PmachinesApp
appname = longname = 'pmachines'
def run(self):
'''Builds the images.'''
- bld_screenshots()
+ bld_screenshots(PmachinesApp.scenes)
bld_images(
files(['jpg', 'png'], ['models', 'gltf', 'bam'], ['_png.png']), int(AbsCmd.cores))
if not self.nolinux:
hbranch = {'master': 'alpha', 'rc': 'rc', 'stable': ''}[branch]
AppImageBuilder(self).build(longname, hbranch,
- 'http://www.ya2tech.it/downloads/')
+ 'https://www.ya2.it/downloads/')
fbranch = {'master': 'alpha', 'rc': 'rc', 'stable': 'stable'}[branch]
bld = FlatpakBuilder(
self,
'it.ya2.Pmachines',
- '/home/flavio/pmachines_builder/flatpak',
+ '/home/flavio/builders/pmachines_builder/flatpak',
'D43B6D401912B520B6805FCC8E019E6340E3BAB5',
- '/home/flavio/pmachines_builder/gpg',
- 'http://www.ya2tech.it/flatpak',
+ '/home/flavio/builders/pmachines_builder/gpg',
+ 'https://www.ya2.it/flatpak',
['options*.ini'],
fbranch,
['assets'])
platform_lst += ['win_amd64']
installers_dct['win_amd64'] = ['nsis']
if all('--nolinux' not in arg for arg in argv):
- platform_lst += ['manylinux1_x86_64']
- installers_dct['manylinux1_x86_64'] = []
+ platform_lst += ['manylinux2010_x86_64']
+ installers_dct['manylinux2010_x86_64'] = []
log_path = '$USER_APPDATA/pmachines/logs/%Y/%B/%d/%H_%M_%S.log'
package_data_dirs = {'simplepbr': [('simplepbr/shaders*', '', {})]}
setup(