Questions tagged [package]

Package broadly refers to two things: 1) a usable unit/component of built/compiled software, or 2) a partition of the global namespace (Java).

Package may refer to a software component or the action of creating a package. The component could be a portion of a whole system, or the whole system itself, or any level of granularity between. Typical packaging mechanisms include: tar, jar, zip, rpm, war, exe. In this context it may also be used as a verb: "I was packaging my software and...".

Package is also a term from the java world to refer to the mechanism used to partition the global namespace with the intention of making it possible of having two classes with the same name and of creating a logical structure in which classes may be held. In java packages are most commonly represented by directories. Package is also a java keyword used at the start of a class file to indicate the package to which the class belongs. This is important because of 'package' scoped access rules, which allow classes in the same package to access a field/method/class.

Because of the ambiguity here it is best to use other tags to help define the meaning of this one. If you're asking about java packages, please include the Java tag. If you're asking about packaging up your software for deployment/use add other appropriate tags, such as 'Maven', 'Make', 'Ant', etc.

16844 questions
6
votes
4 answers

Python one class per module and packages

I'm trying to structure my app in Python. Coming back from C#/Java background, I like the approach of one class per file. I'd like my project tree to look like this: [Service] [Database] DbClass1.py DbClass2.py [Model] …
Stefan
  • 4,166
  • 3
  • 33
  • 47
6
votes
1 answer

What does -devel mean when installing a library?

I'm reading some readmes and they contain some packages with "-devel", and some without. What is the difference? sudo yum install gcc (vs) sudo yum install pcre-devel What would happen if I installed "sudo yum install pcre" instead?
Dave
  • 9,033
  • 4
  • 21
  • 20
6
votes
3 answers

Relation between package and a sub package in Java

Can anyone please let me know the relation between a package and a sub package in java?
6
votes
2 answers

Do Scala libraries follow the same inverted domain convention for naming packages as Java?

I'm looking to write a small Scala library to get a feel for its Actor programming model. In the example code I've come across, some libraries use inverted domain (e.g. org.foo.bar) for packages and some do not (maybe just for brevity). Is it…
Joe Holloway
  • 28,320
  • 15
  • 82
  • 92
6
votes
2 answers

Where should I place a Python package's demo script?

I am coding a new python package to be used by others. To demonstrate how it should be used, I am writing a demo script that executes the main parts of the new package. What is the convention for doing this, so that other will find the script…
cyborg
  • 9,989
  • 4
  • 38
  • 56
6
votes
5 answers

How can I detect recursing package calls in Perl?

I have a Perl project were I just had a problem by making a circular package call. The code below demonstrates the problem. When this is executed, each package will call the other until all of the memory of the computer is consumed and it locks…
Dan Littlejohn
  • 1,329
  • 4
  • 16
  • 30
6
votes
1 answer

Usage of direct references in pyproject.toml with hatchling backend

If I understand the documentation for hatchling correctly, in a pyproject.toml with hatchling as a backend, I should be able to to add a local package within the package folder by using the local direct reference schema @…
Tim
  • 802
  • 1
  • 7
  • 15
6
votes
1 answer

How do you create a fully-fledged Python package?

When creating a Python package, you can simply write the code, build the package, and share it on PyPI. But how do you do that? How do you create a Python package? How do you publish it? And then, what if you want to go further? How do you set up…
RGS
  • 964
  • 2
  • 10
  • 27
6
votes
1 answer

ERROR: No matching distribution found and ERROR: Could not find a version that satisfies the requirement

I'm trying to install the requirements of a GitHub clone in a virtual environment created by py -m virtualenv objectremoval command, but I always encounter the "Could not find a version that satisfies the requirement" Error. After cloning the repo,…
Leon
  • 73
  • 1
  • 1
  • 7
6
votes
2 answers

Can modules with a common package hierarchy mentioned multiple times in my PYTHONPATH?

I have two separate projects that share a package name. They run OK as long as they are not both on the PYTHONPATH, but as soon as they both appear one of them cannot find imports in its own project. Example, two projects like this: Project…
Simonz
  • 61
  • 2
6
votes
1 answer

Python: multiple packages with multiple setup.py files

I'm having a hard time constructing my Python setup.py files to do what I want. I have one pacakge set up like this: somestuff_root/ setup.py myutils/ __init__.py a/ __init__.py somestuff.py I have…
PythonSlacker
  • 61
  • 1
  • 1
  • 2
6
votes
2 answers

Creating Packages With Perl

I seem to be having a lot of trouble with making my first, simple Package (actually it is my first package period). I am doing everything I should be doing (I think) and it still isn't working. Here is the Package (I guess you can call it a…
Dynamic
  • 921
  • 1
  • 12
  • 31
6
votes
2 answers

Python Imports, Paths, Directories & Modules

Let me start by saying I've done extensive research over the course of the past week and have not yet found actual answers to these questions - just some fuzzy answers that don't really explain what is going on. If that's just cause I missed what I…
nfarrar
  • 2,291
  • 4
  • 25
  • 33
6
votes
4 answers

In R can I save loaded packages with the workspace?

R normally only saves objects in .GlobalEnv: $ R > library(rjson) > fromJSON function (...) ... > q(save='yes') $ R > fromJSON Error: object 'fromJSON' not found Is there a way to have this information saved as well?
Owen
  • 38,836
  • 14
  • 95
  • 125
6
votes
1 answer

How to fix error when building conda package related to "Icon" file?

I honestly can't figure out what is happening with this error. I thought it was something in my manifest file but apparently it's not. Note, this directory is in my Google Drive. Here is my MANIFEST.in file: graft soothsayer_utils include…
O.rka
  • 29,847
  • 68
  • 194
  • 309
1 2 3
99
100