rpm-maven-plugin icon indicating copy to clipboard operation
rpm-maven-plugin copied to clipboard

Question: rpm-maven-plugin

Open YaelMagrafta opened this issue 1 year ago • 1 comments

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!

YaelMagrafta avatar Jan 03 '23 16:01 YaelMagrafta

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

psmith-trackvia avatar Jan 03 '24 23:01 psmith-trackvia