Questions tagged [packaging]

Packaging is a configuration management process involved with capturing the knowledge needed to install or uninstall software on a target system.

0
votes
2answers
31 views

Flutter package targeting min version

I published a package to pub.dev that uses the Flutter SDK version 1.6.3 which as of today is the beta channel However the pub analyser uses v1.5.4-hotfix.2 which does not have those API changes just ...
0
votes
0answers
27 views

Can't open Package.appxmanifest in Visual Studio 2019

I have a problem while opening the freshly created Package.appxmanifest by Microsoft Visual Studio 2019 community (with a new project Windows Application Packaging Project for Windows 10) on Windows 7....
0
votes
1answer
32 views

dpkg-buildpackage: how to include .so files in the source pack

I want to package a third party application which contains .so files. When I build the package with dpkg-buildpackage, the .so files are excluded from the generated source package. I don't have an ....
0
votes
0answers
20 views

Create temporary file during setup.py

I'm having fun with python packaging today. i want to populate the __version__ keyword in my package, but only when it's pip install'd. if I'm using it locally, then I want the version to come from ...
0
votes
0answers
10 views

How do I alias a python module at packaging time?

For historic reasons and backwards compatibility I want to package a module (let's call it myapi) in a way that both these sets of imports import the same code: from myapi.utils import helpers from ...
0
votes
0answers
20 views

FileNotFoundError: [Errno 2] when packaging for PyPI

I have uploaded a simple python package in https://test.pypi.org. When I download this with pip and try yo run I get FileNotFoundError: [Errno 2] File b'data/spam_collection.csv' does not exist: b'...
0
votes
0answers
21 views

Error while building project Unreal Engine 4 - fatal error C1083 (SharedPCH.Core.h.pch)

I created my project on Unreal Engine 4.19, then decided to switch to Unreal Engine 4.21. I worked on the project for many weeks, decided to build it, but I get this error - c1083. I think the ...
0
votes
0answers
21 views

How to run scripts from multiple virtual environments without activating virtual environments before call?

I forced to have two incompatible versions of python package: more recent version with nice cli and more old version with python API used by third-party orchestration tool which is a python package ...
1
vote
1answer
34 views

Efficiently using LLVM through various platforms

I'm implementing a language using LLVM (C#, .NET Core). I intend this language to have cross-platform compatibility in the sense that its final executable is compiled targeting the local machine, for ...
2
votes
1answer
55 views

submit an R package with CTAN dependencies to CRAN

I am currently working on an R package that is going to be submitted CRAN within a few weeks. The package needs some latex packages to run. Those latex packages are available on CTAN and injected in ...
-3
votes
1answer
52 views

How to package node-red project into an executable file?

I want to package my Node-RED flow deployment into an executable file so whenever the executable file is run then the flow should be deployed. How can this be achieved? I came up with different ...
0
votes
0answers
14 views

Running Spring Boot application as service with third party jars using winsw

I need my spring boot app to run as windows service. I am already using winsw. Is there a way I can include my third party jars along with the app using winsw? I can't include some jars in pom.xml as ...
0
votes
0answers
24 views

How to specify relative path of a file to copy while installing a package?

I'm trying to copy some files within a package to the root directory, but get an error while copying which says no such file or directory. How to specify the relative path in this case? ...
1
vote
1answer
88 views

package only cythonized binary python files and resource data but ignoring python .py source files

I need to obfuscate my python code, to achieve it I am using cythonize extension, I am able to achieve it and get the binary compiled a.so files from a.py files but after doing bdist_wheel the .whl ...
0
votes
0answers
22 views

How to package Python 3 Kivy application for Windows 10 with only required dependencies?

I wrote a GUI application in Python 3 using Kivy that needs to be distributed to non tech savy people that need an executable. The first time I tried to build an .exe I got a 800MB dist folder due to ...
0
votes
1answer
17 views

Python namespace packages

I'm following this instructions to create multiple small (independent) Python2 packages from a big one - https://packaging.python.org/guides/packaging-namespace-packages/#pkg-resources-style-namespace-...
0
votes
1answer
34 views

numpy.distutils setup not rendering README.md correctly on pypi

I am using from numpy.distutils.core import setup for packaging up some code to pypi. However the README.md file does not render correctly. This works fine if I use setup from setuptools, but I am ...
0
votes
0answers
15 views

Packaging Python applications with plugins: How to allow user-defined libraries?

I have a Python application that allows the user to write their own script/plugin. The application loads the script and runs a function defined in the script. My question: How to allow users to ...
0
votes
0answers
12 views

Generating all archive formats with setuptools

According to the distutils documentation, the bdist_dumb command should generate multiple archive formats. However, when using setuptools, the behavior is different: only one archive format (the ...
0
votes
0answers
40 views

How to package “test helpers”?

My application consists of two parts: a reusable library and a "front end". Both are in different source repositories. The library’s test suite contains some helpers which I want to use in the front ...
0
votes
0answers
13 views

Deb packaging - autoremoving obsolete files and canceling installation on preinst script

I recently started to learn deb packaging. I have to package some python application for easier mainenance/upgrading. Before you redirect me to Maintenance guide and similar HUGE manuals about ...
2
votes
1answer
36 views

Named exports/ imports vs imports with absolute path

I am implementing a component library (an npm module and we'll call it awesome-components) which consists of buttons, inputs, dropdowns etc. where an end user can install it in thier react app and use ...
3
votes
0answers
28 views

Maven Tycho fails as it tries to unzip a signature file (tycho-packaging-plugin)

I am building an Xtext project with Maven+Tycho. mvn clean install completes successfully, mvn deploy completes successfully as well, but mvn clean install deploy fails with: [ERROR] Failed to ...
2
votes
0answers
36 views

ModuleNotFoundError when pip installing package, but not when using python setup.py install

I've restructured a project to the src directory structure. It looks like this: root_dir/ src/ module1/ __init__.py script1.py script2.py ...
1
vote
0answers
24 views

Running “python setup.py” to install a package as a site-package but python is zipping everything inside egg folder

Following is the folder structure: Utility/utils/__init__.py, wrapper, auditory.py /setup.py I have been trying to install utils as site-package in python by running "python setup.py install" ...
1
vote
1answer
69 views

How to include all 3rdparty runtime dependencies into cmake/cpack-generated package on linux?

I have a c++ project with a couple of executables set up with cmake. The usual workflow is to install all 3rdparty dependencies via package manager, build and install a package via cpack on that same ...
0
votes
0answers
13 views

Simplest way to package (eclipse project) files with conda

I am looking for a simple way to package a bunch of files (more specifically eclipse projects generated by ci build, but no matter) so that developers may install and use them. Dev environment is ...
0
votes
1answer
20 views

Pyinstaller executable can't run on other machines (OS X)

I am trying to package my python script (a script that asks for user input and runs solely in the Terminal window on mac). I package the application using 'pyinstaller' and the following code: ...
0
votes
1answer
36 views

how to create package in a way that using `import mypackage` will import the files i need

i am trying to create a pip package. my file structure is: setup.py README.md LICENSE mypackage/ mypackage.py __init__.py my __init__.py looks like this: from mypackage import * mypackage....
7
votes
3answers
319 views

Is this the approved way to acess data adjacent to/packaged with a Python script?

I have a Python script that needs some data that's stored in a file that will always be in the same location as the script. I have a setup.py for the script, and I want to make sure it's pip ...
2
votes
1answer
49 views

Is there a standard location to store function cache files in Python?

I have these scripts that perform a lot of expensive computations. One optimization I do is to evaluate the expensive function on a grid, cache the grid, and interpolate for calls within the grid. It ...
0
votes
1answer
33 views

Questions about packaging the first PyPi project

Few days ago I've created a little project called pyblime and right now I was trying to figure out how to create a proper setup.py that allowed me to upload the "right stuff" to PyPi so users will be ...
0
votes
2answers
27 views

Pip package won't run if I do not use sudo while installing it

So I have a little package in pip and I want to install it. Let's call it noty. The issue is that if I install it with sudo pip3 install noty the program will run but if I install it using pip3 ...
1
vote
1answer
43 views

Google App-Engine run setup.py install for own Python application

I realize this might be a super basic question, but I'm developing a Python application on Google App Engine Standard using some of the basic tutorials. Many of these tutorials are MVC, and that's ...
0
votes
1answer
47 views

Specify shebang on project using Perl Module::Build

I'm packaging clusterssh to openSUSE and need to change default shebang from #!/usr/bin/env perl to #!/usr/bin/perl. clusterssh uses Module::Build. I'll probably use the patch (as Debian package do), ...
0
votes
0answers
48 views

Troublesome naming convention when packaging multiple services for one .deb package using dh_installinit

I have problem with Debian packaging system, particularly debhelper called dh_installinit which installs service init files into package build directories. I have a project that builds multiple .deb ...
0
votes
1answer
57 views

How can I build libQt5Declarative.so?

When building qtdeclarative, I get the following artifacts: drwxr-xr-x 6 4.0K Mar 8 21:17 cmake/ -rw-r--r-- 1 2.1M Mar 8 21:19 libQt5QmlDevTools.a -rw-r--r-- 1 706 Mar 8 21:19 libQt5QmlDevTools....
2
votes
2answers
128 views

How do I build a py2 wheel package, when setup.py runs with a Python version 3 interpreter?

I have a package that is supposed to be Python version 2 only but needs to be build running a version 3 interpreter. The setup.py of this package looks something like hits: from setuptools import ...
0
votes
0answers
17 views

Git Repository within Git Repository for Client Consumption of Distribution Files

I have a webpack project that creates files in the dist folder. I want my client to have access to only the files in the dist folder and would like them to be able to install and update via the git ...
0
votes
0answers
37 views

Python namespace packaging ModuleNotFoundError

I am trying to have sub-namespaces inside of a module namespace. (I'm trying to follow the documentation on packaging namespace packages) project_1/ │   └── namespace | ├── __init__....
2
votes
0answers
30 views

What exactly does <packaging>grails-app<packaging> do?

I understand how some of the other packaging configurations work with regard to maven builds, but I am confused on what the purpose and goals of this option is. I have a grails project that I am able ...
0
votes
1answer
56 views

Packaging .txt files for use in python executable using pyinstaller [duplicate]

I've built a hangman game with the use of other .txt files in the same directory containing the word banks for the hangman game, these are opened from within the hangman.py file, when i use ...
1
vote
0answers
58 views

ElectronJS build doesn't include needed folder

I'm working on a ElectronJS and ExpressJS project to build an application that runs an API in background and show a system tray with some features to control and monitor that API. "electron": "^4.0.4"...
1
vote
1answer
42 views

How to access 'global' variable from subpackage?

I am currently trying to ship some bigger project. That is the reason why I decided to use submodules. Take a look at the project structure: /sandbox __init.py__ constants.py ...
0
votes
0answers
52 views

bdist_conda fails to install dependencies

I am trying to build a conda package using python setup.py bdist_conda. ## Package Plan ## environment location: /Applications/anaconda3/conda-bld/bdist_conda_1550693590209/...
1
vote
1answer
35 views

how to specify conda package dependence and its channel

I am learning how to create conda packages and I would like to understand how to specify a dependence with a specific channel The reason I've chosen conda is that my package has a dependency that ...
1
vote
1answer
37 views

Angular7 - Production build fails while going through Bitbucket package

I would like to build a system where angular components can be re-used across multiple applications using bitBucket. At the moment I have the following: BitBucket Repo A - to store the node module. ...
1
vote
0answers
18 views

Copying top-level data files to site-packages

I have the following folder structure: mypkg/ -- setup.py | -- src/ | -- mypkg/ | -- actual source files (.py) | -- supporting_files/ | -- ....
0
votes
1answer
114 views

CentOS 7 - how to install dependency using wget in an RPM spec file

I'm trying to write a spec RPM file to build an RPM package. Here is in essence my spec file: [...] Requires: nodejs java-1.8.0-openjdk java-1.8.0-openjdk-devel log4j %define _rpmdir ../ %define ...
0
votes
0answers
41 views

“python3 setup.py sdist” hangs

I am packaging up a python package, but the command python3 setup.py sdist is hanging. Previously this worked without any problems, but now it hangs while doing: /usr/bin/gfortran -Wall -g -Wall -...