Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Question: rpm-maven-plugin #135

Open
YaelMagrafta opened this issue Jan 3, 2023 · 1 comment
Open

Question: rpm-maven-plugin #135

YaelMagrafta opened this issue Jan 3, 2023 · 1 comment

Comments

@YaelMagrafta
Copy link

Hi guys,
I am using rpm-maven-plugin version 2.1.3 to create rpm file from a python package.
I have a problem during the build, since the environment I'm using has python2.7 as default python, and that causes the bytecompilation to fail on python3 files. Unfortunately I cannot change the environment variable.
I'm looking for a workaround - trying to force the bytecompile to be done with python3.
As I understand, I can use the spec file that is created during the rpm build to do this.
Is it possible? what parameter would I need to change?
Many thanks!

@slawekjaranowski slawekjaranowski transferred this issue from mojohaus/mojo-parent Jan 3, 2023
@psmith-trackvia
Copy link

psmith-trackvia commented Jan 3, 2024

Just went through this ... here is what worked for me ... <defineStatement>__python 3</defineStatement>

	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>rpm-maven-plugin</artifactId>
				<version>2.3.0</version>
				<configuration>
					<defineStatements>
						<defineStatement>__python 3</defineStatement>
					</defineStatements>

Make sure you have /usr/bin/python3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants