236 Commits

Author SHA1 Message Date
Kay Hayen
af0f02048f User Manual: Updated to use "Nuitka[build-wheel]" and also updated a few obsolete uses 2025-10-10 17:04:14 +02:00
Kay Hayen
9cdab9712c Onefile: Add "{PROGRAM_DIR}" in spec variable and allow users cached mode decision
* The new variable expands to the directory of the
  onefile binary and can be useful for forced output
  specs as well as for some onefile setups where you
  know the user environment very well.

* Allowing the user to control the removal or not of
  the temporary files. They may want to remove even
  from what would be static paths, and they might
  want to remove for what appears to be dynamic, but
  they know it's not used like that.

* Also add new onefile section to reports.
2025-10-10 16:48:53 +02:00
Kay Hayen
155dd343c6 User Manual: Updated example for Nuitka-Action
* Newer upload artifact should be referenced and
  compilation mode option should be preferred now.
2025-04-28 11:04:39 +02:00
Kay Hayen
5e3c5a4a0d UI: Replace uses of "--module" with "--mode=module"
* Also the new "--mode=package" wasn't considered in
  a few places in our testing framework.
2025-04-28 11:04:38 +02:00
Kay Hayen
d396a01185 User Manual: Use "--mode=" option in example code 2025-04-28 11:04:37 +02:00
RhooneN
df57a81bbf User Manual: Fix typos 2024-12-22 10:26:54 +01:00
WÁNG Xuěruì
a8a2722443 Added Attribute "original_argv0" to present start value.
* When making sys.argv[0] an absolute value, information is lost that might be needed.

* The new attribute can be used by application that need this information too.

---------
Co-authored-by: Kay Hayen <kay.hayen@gmail.com>
Co-authored-by: kamgha <kamgha@users.noreply.github.com>
2024-12-18 11:37:43 +01:00
Kay Hayen
351c79852c Python3.13: Consider it officially supported 2024-12-18 11:10:34 +01:00
Kay Hayen
c97de83d2e User Manual: Enhanced instructions for pystone testing 2024-12-18 11:10:21 +01:00
Kay Hayen
f540614430 PGO: Make Python PGO work for standalone mode
* Also rename --pgo to make it clear it's about C compiler only
2024-12-18 11:08:32 +01:00
Kay Hayen
4d21cb2884 Project: Remove unmaintained badges
* We cannot update or transfer Nuitka there to us and the
  project doesn't even support organisation repositories.
2024-12-18 10:54:58 +01:00
Rene Leonhardt
3db8392178 Python3.12: Added missing usages in a few places and added badges to reflect Python support
* Add badges to reflect 3.12 support

* Don't use 3.12 or skip test suite if requested
2024-12-18 10:54:57 +01:00
Kay Hayen
b3da512d0a Actions: Update depecated actions to newer versions 2024-12-18 10:54:56 +01:00
Kay Hayen
adc23d3fd0 UI: Major change in console handling
* Compiled programs on Windows are now created as GUI
  applications by default and attach to an available
  console if not redirected outputs.

* The new option "--console" controls this, and allows
  to restore old behavior with "force" value, and also
  disable with "disable" value, the new behavior is
  called "attach".

* On macOS the distinction has also been removed,
  technically it wasn't true for a while already,
  you need to use bundles for non-console
  applications through.

* Removed Nuitka Package configuration for the
  "options-nanny" plugin to warn the user about
  disabling console, it now recommend macOS bundle
  instead.

* This should improve the out of the box experience
  esp. on Windows by a lot.
2024-12-18 10:53:56 +01:00
Kay Hayen
e13849ed30 User Manual: Cleanup
* The user manual has sections removed that do not make sense in a world where we also
  maintain it in Nuitka-Website.

* Minor editorial improvements
2024-12-18 10:49:54 +01:00
Kay Hayen
f12557443b User Manual: Make it clear that for Python 3.11 the MSVC 2022 is needed 2024-12-18 10:49:54 +01:00
Kay Hayen
772fdd1284 User Manual: Added table for fine grain cache control
* With specific environment variables, now caches like
  the download cache can forced to specific locations.
2024-12-18 10:49:54 +01:00
Kay Hayen
2b63f1bf44 User Manual: Added one more low memory C compiler example message 2024-12-18 10:48:16 +01:00
Kay Hayen
a478456369 User Manual: Updated documentation for non-code data file treatment 2024-12-18 10:47:51 +01:00
Kay Hayen
3ca8f47822 UI: Enhanced data file directory descriptions 2024-12-18 10:47:51 +01:00
Kay Hayen
183a167efb User Manual: Added examples for error message with low C compiler memory 2024-12-18 10:47:30 +01:00
Kay Hayen
5e122bf7f5 Merge tag '2.0.3' into develop 2024-12-18 10:47:28 +01:00
Kay Hayen
c5fabbbe01 Merge tag '2.0.2' into develop 2024-12-18 10:46:47 +01:00
Kay Hayen
62f5624187 User Manual: Be more clear about compiler version needs 2024-12-18 10:46:08 +01:00
Kay Hayen
2dc1f9040e User Manual: Imported changes from Nuitka-Website 2024-12-18 10:45:32 +01:00
Kay Hayen
8e9c749878 User Manual: Imported changes from Nuitka-Website 2024-12-18 10:45:32 +01:00
Kay Hayen
ca7f72d3cc Cleanup, make sure to use proper TOML syntax
* Found by website build, these are bad examples to have.
2024-12-18 10:45:31 +01:00
Kay Hayen
8521be8d79 UI: Change template paths over from '%VAR%' to '{VAR}'
* Old spec values are migrated transparently and continue
  to work, but get a warning.

* Now detects unknown variable names and more formatting
  issues than before.

* Using the "{PID}" value is now making it temporary value for
  onefile temp directory, that was previously a bug.

* Main benefit should be that "CMD.EXE" doesn't expand those
  before Nuitka sees them as even with quoting "%TEMP%" is
  expanded in that shell.
2024-12-18 10:45:31 +01:00
Kay Hayen
5bcd017c39 User Manual: Make it clear where project options are supposed to live 2024-12-18 10:45:31 +01:00
Kay Hayen
a2a1285d13 Added "containing_dir" and "macos_bundle_mode" to "__compiled__" values
* The "containing_dir" points to the directory where the module,
  app bundle, standalone folder, or onefile binary is located.

* On macOS, the "sys.argv[0]" is not directly usable to locate the
  containing directory without custom code, this spares applications
  from even using that, in case they are compiled.

* Cleanup helper code environment variables to be reused in the
  onefile bootstrap.
2024-12-18 10:43:40 +01:00
Kay Hayen
80429018b5 Cleanup, prefer "os.getenv" over "os.environ.get"
* More readable and shorter code as a result.
2024-12-18 10:43:40 +01:00
Kay Hayen
148487abac User Manual: Added pointers to Nuitka-Action repo for workflows 2024-12-18 10:43:40 +01:00
Kay Hayen
7ab23a2fbf User Manual: Do not provide default value anymore 2024-12-18 10:43:40 +01:00
Kay Hayen
3a2ae17c6e Merge tag '1.9.5' into develop 2024-12-18 10:43:08 +01:00
Kay Hayen
3e406c62cd User Manual: Added information on how to debug fork bombs 2024-12-18 10:42:34 +01:00
Anton Yablokov
fdc74bb528 User Manual: Fix typos in the User Manual 2024-12-18 10:42:34 +01:00
Kay Hayen
2676d9d89e Python3.3: Was still listed as officially supported
* Also a couple of places in the docs referred to special cases
  with it, not needed anymore.
2024-12-18 10:40:08 +01:00
Kay Hayen
7f2556e92c Distutils: Allow putting Nuitka options in pyproject schema compliant
* Rather than enforcing "[nuitka]" which is violating the defined
  schema for "pyproject.toml" files, support "[tool.nuitka]" instead.

* The old form of doing it will continue to work though.
2024-12-18 10:40:07 +01:00
Kay Hayen
03d38a7221 User Manual: Improved "--include-plugin-directory" documentation
* Also mention "--output-filename" when speaking of default output filename
2024-12-18 10:40:07 +01:00
Kay Hayen
785596a06b User Manual: Added section about Linux standalone being hard 2024-12-18 10:39:33 +01:00
Kay Hayen
13237917c1 User Manual: Made requirements top level chapter
* Hiding behind usage was wrong.

* Also added promise to support newer Python versions.
2024-12-18 10:39:33 +01:00
Kay Hayen
2e683e7c8e User Manual: Added description of deployment mode 2024-12-18 10:39:33 +01:00
omahs
0e8974e2b2 User Manual: Fix typos 2024-12-18 10:35:19 +01:00
Kay Hayen
53c5851aeb User Manual: Enhance information for module use case 2024-12-18 10:35:17 +01:00
Kay Hayen
ca7b574691 macOS: Pronounce Homebrew as somewhat support but not recommended 2024-12-18 10:35:17 +01:00
Kay Hayen
5ade5ca889 User Manual: Added instructions for using ccache on macOS and arm64 2023-07-16 22:38:36 +02:00
Kay Hayen
09fb3f2ef7 User Manual: Added typical problem with "-m" execution not working 2023-07-16 22:36:23 +02:00
Kay Hayen
b18719b74f Added support file spec %PROGRAM_BASE%
* This also makes error messages from OS on Windows to be English
  in all cases for better bug reports.

* Moving the spec expansion to file path helper codes.

* Moving the query of binary paths to path helper codes as well.

* Addressing warnings given with MinGW64 and debug mode for onefile.

* Cleanup interface to Windows service to use header file.

* Move printing of OS errors to string helper codes for easier reuse.

* Implement %PROGRAM% for non-Windows too, this was forgotten.
2023-06-20 01:45:48 +02:00
Kay Hayen
1066e255d3 Merge tag '1.6.2' into develop 2023-06-09 12:01:50 +02:00
Kay Hayen
2c96ee8ec9 Multidist: Added help output and corrected wrong option name 2023-06-09 08:49:48 +02:00