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
7
votes
0 answers

Artifactory: Avoid overwriting already existing release package?

is it possible to avoid overwriting (lock) an existing release package in Artifactory? We have already backups, but it is complicated to restore all release packages, that belongs to a specific release version. We want to avoid an release…
pan40
  • 317
  • 1
  • 5
  • 15
7
votes
3 answers

how to package a django project?

How can i package a project so that i can just call some function that runs the project? I know how to package a django app, but my question is how to package a django project. Currently i have my project on an internal pypi server and can pull it…
Calum
  • 2,110
  • 2
  • 22
  • 39
7
votes
3 answers

Distributing Python scripts without .py extension

if I'm writing a package in Python for distribution and I put some scripts to be regarded as executables in the scripts of setup.py, is there a standard way to make them not have the *.py extension? Is it sufficient to just make files that do not…
user248237
7
votes
4 answers

Start activity from another package

I have this manifest:
user1993006
  • 79
  • 1
  • 1
  • 4
7
votes
3 answers

Building package structure with child-/sub-packages

I'm trying to make a simple calculator in Go. I'm designing it in such a way that I can build a command-line interface first and easily swap in a GUI interface. The project location is $GOPATH/src/gocalc (all paths hereafter are relative to the…
weberc2
  • 7,423
  • 4
  • 41
  • 57
7
votes
2 answers

D Development Process

What is the recommended development process for D programs that use packages that are cloned from github and separately built? Typically in relation to how C/C++ projects are built using make, autotools, cmake, etc. Most other build specifications…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
7
votes
2 answers

Sublime Text 2 Error Trailing comma before closing bracket

I changed the user setting from preference and saved it. Then i tried to open editor but i get the error message. So i uninstalled and installed it again. Though, no use. Also the path mentioned in the error message also is not there. The error…
7
votes
2 answers

How to define which variables or functions from a package are exported

My R package uses an internal variable x. If I load the package (I've only tried using devtools::load_all), then x doesn't appear in the ls() list, but it does have a value. How can I avoid this? I'm fine with the user being able to access the…
Andreas
  • 7,470
  • 10
  • 51
  • 73
7
votes
4 answers

My legal domain name is not a legal Java package name

The name of my domain name is 3DTOPO.com. Apparently java does not allow package domain names to start with a number. Why doesn't the Java reverse domain name follow the same rules as domain names do? I really don't want to name my package…
Jeshua Lacock
  • 5,730
  • 1
  • 28
  • 58
7
votes
3 answers

Shouldn't "import foo.*" also include subpackage "foo.bar.*"?

Studying Java, I've thought about a, to me, rather confusing property of many tutorials. Consider the following two imports from a sample tutorial: import java.awt.*; import java.awt.event.*; The first line obviously imports the java.awt package,…
Zar
  • 6,786
  • 8
  • 54
  • 76
7
votes
4 answers

Unable to 'SELECT INTO' when value doesn't exist

SELECT Value1 INTO lValue FROM Table1 WHERE Field1 = lTempValue; This works fine when the match is true. But if the match isn't true, I receive an error. ORA-01403: no data found Ideally, that's fine with me because I'm going to check that…
XstreamINsanity
  • 4,176
  • 10
  • 46
  • 59
7
votes
2 answers

R namespace access and match.fun

I'm working on an R package where one of the functions contains a match.fun call to a function in a package that's imported to the package namespace. But on loading the package, the match.fun call can't find the function name. From Hadley Wickham's…
7
votes
2 answers

Why can't module access attributes declared in __init__.py of its package?

I have a package structure as follows: mypackage __init__.py mymodule.py I put some "constant" declarations in __init__.py for example: DELIMITER='\x01' However, the code in the mymodule.py can't access DELIMITER unless I add: from __init__…
Sam Goldberg
  • 6,711
  • 8
  • 52
  • 85
7
votes
6 answers

Recommended ways to split some functionality into functions, modules and packages?

There comes a point where, in a relatively large sized project, one need to think about splitting the functionality into various functions, and then various modules, and then various packages. Sometimes across different source distributions (eg:…
Sridhar Ratnakumar
  • 81,433
  • 63
  • 146
  • 187
7
votes
4 answers

Newbie question about Lisp and Packages

Here is the back story skip to the bottom if you do not care and only want to see the question. So I have been playing around in LISP for a little while. Some basic functions, some classes ,and file IO. When I run across this…
efbenson
  • 189
  • 1
  • 9