packaging

documenting dataset with roxygen2

穿精又带淫゛_ 提交于 2019-12-21 03:19:26
问题 I'm trying to document some datasets in an R package using roxygen2. Considering just one of these: I have mypkg/data/CpG.human.GRCh37.RDa which contains an object called CpG.human.GRCh37 and a file called: mypkg/R/cpg-data.R , which contains: #' @name CpG.human.GRCh37 #' @title CpG islands - human - genome build: GRCh37/hg19 #' @description This data set list the genomic locations of human CpG islands, #' with coordinates based on the GRCh37 / hg19 genome build. #' @docType data #' @usage

Distributing binary applications across linux distros

主宰稳场 提交于 2019-12-20 20:17:12
问题 I've written an application which as of yet is not open source and I'd like to distribute the executable across various linux distros. What's the best way to do this, I've looked a little bit at .rpm and .deb packaging but I can't find if that can be used for binaries or not. Ideally I'd like something like the PackageMaker on OS X or a regular installer on windows that will have it automatically copy into /usr/bin. Is that what .rpm and .deb packages are for or do I have to bundle a shell

Package and use embedded database (H2.db file) inside a Jar?

≯℡__Kan透↙ 提交于 2019-12-20 14:41:48
问题 I'm using H2 embedded database for my application. I would like to contain everything the application needs in it's own Jar, including it's database if possible. My app does not need to create temp files or anything, so basically the user just runs the Jar. Is it possible to embed a database inside a Jar, and be able to INSERT new records as well as just SELECT out? EDIT: Just to clarify, I'm not looking to embed the H2 driver jar inside my distributable jar, I'm looking to embed the h2

How to compile C++ dependencies during pip install?

馋奶兔 提交于 2019-12-20 14:13:08
问题 I want to make my python code pip-able. However, my code depends on another library which isn't pip-able. So, somehow I need to compile the source code when a user calls pip install . How can I do that? I haven't been able to find a good reference via simple Google searches. 回答1: I would recommend taking a look at how llvmlite solves this problem. The idea is to use custom cmdclass s in setup.py that calls your other build system. In llvmlite, they call out to CMake, for example. See: https:/

How to merge wars into one?

与世无争的帅哥 提交于 2019-12-20 12:34:17
问题 In our company, we have a number different modules constructed as separate wars. Each client can pick and choose module he wishes to buy. Since all modules share same session, security context etc, it makes sense to merge them into a single war. Is it possible to automate this process? For example, it should merge web.xml, calculate each wars dependencies, copy files like .jsp and .class etc. By the way, we are using Maven, but were not able to find a solution to this problem. 回答1: Granted

How to write setup.py to include a git repo as a dependency

我的未来我决定 提交于 2019-12-20 09:56:06
问题 I am trying to write setup.py for my package. My package needs to specify a dependency on another git repo. This is what I have so far: from setuptools import setup, find_packages setup( name='abc', packages=find_packages(), url='https://github.abc.com/abc/myabc', description='This is a description for abc', long_description=open('README.md').read(), install_requires=[ "requests==2.7.0", "SomePrivateLib>=0.1.0", ], dependency_links = [ "git+git://github.abc.com/abc/SomePrivateLib.git#egg

Can not build war from grails project

我的未来我决定 提交于 2019-12-20 04:29:10
问题 I'm building Grails (2.4.4) project and I faced very strange problem: I can 'run-app', I can 'compile' it but I can not 'war' or 'run-war' it. There is a problem with Enum class (AlertType) from src/groovy directory when importing it to domain class (Alert): | Compiling 258 GSP files for package [myProject]. | Error WAR packaging error: startup failed: file:/home/me/workspaces/workspaceGrails/myProject/grails-app/domain/com/example/alert/Alert.groovy: 4: unable to resolve class com.example

pip installing data files to the wrong place

对着背影说爱祢 提交于 2019-12-19 19:53:59
问题 The source for the package is here I'm installing the package from the index via: easy_install hackertray pip install hackertray easy_install installs images/hacker-tray.png to the following folder: /usr/local/lib/python2.7/dist-packages/hackertray-1.8-py2.7.egg/images/ While, pip installs it to: /usr/local/images/ My setup.py is as follows: from setuptools import setup setup(name='hackertray', version='1.8', description='Hacker News app that sits in your System Tray', packages=['hackertray']

Building Cross Platform app - recommendation

岁酱吖の 提交于 2019-12-19 07:56:59
问题 I need to build a fairly simple app but it needs to work on both PC and Mac. It also needs to be redistributable on a disc or usb drive as a standalone desktop app. Initially I thought AIR would be perfect for this (it ticks all the API requirements), but the difficulty is making it distributable, as the app would require the AIR runtime to be installed to run. I came across Shu Player as an option as it seems to be able to package the AIR runtime with the app and do a (silent?) install.

PIP install “error: package directory 'X' does not exist”

孤者浪人 提交于 2019-12-18 18:54:26
问题 I am trying to install this package via PIP. It gives me the following error: error: package directory 'RTbatch' does not exist I find this weird, because the relevant setup.py does not mention any packages variable, but only py_modules . What's wrong? Can you help me out? Here is the full output of pip install -e RTbatch : Obtaining file:///home/chymera/RTbatch Running setup.py (path:/home/chymera/RTbatch/setup.py) egg_info for package from file:///home/chymera/RTbatch /usr/lib64/python2.7